3 use lib '../../build/bindings/perl';
8 # open(F, "gzip -cd tmp/primary.gz |") || die;
10 # Create Pool and Repository
11 my $pool = new satsolverx::Pool;
12 $pool -> set_arch( 'i686' );
13 my $repo = $pool -> create_repo('repo');
15 # Add Solvable to Repository
16 $repo -> add_solv ("tmp/primary");
20 my $solver = $pool -> create_solver();
22 # Create dependencies to provides table
26 my $job = $pool -> create_transaction();
29 my $pat = $pool -> find( "pattern:default" ) || die;
30 $job -> install( $pat );
32 # $job -> install( "pattern:default" );
35 $solver -> solve ($job);
37 # Print packages to install
38 $a = $solver -> getInstallList();
39 foreach my $c (@{$a}) {