9 my $rootdir = "/mnt/BIG/dis";
11 foreach my $f (@ARGV) {
12 my ($path, $fullname) = (dirname
($f), basename
($f));
14 my ($name, $evr) = $fullname =~ /^(.*)-([^\-]*-[^\-]*)$/ or die "bad argument $f\n";
16 my $urpm = $urpms{$path} ||= do {
18 my $synthesis = "$rootdir/$path/media_info/synthesis.hdlist.cz";
19 my ($start, $end) = $urpm->parse_synthesis($synthesis) or die "can't parse $synthesis\n";
24 if (my $pkg = srpm_by_name
($urpm, $name)) {
25 my $fullname = $pkg->fullname;
26 my $score = $pkg->compare($evr);
28 # $status = "obsolete (there is $fullname)";
30 } elsif ($score == 0) {
31 $status = "available";
33 # $status = "not yet (there is $fullname)";
39 print "$fullname $status\n";
44 my ($urpm, $name) = @_;
45 $urpm->{srpm_names
} ||= { map { $_->name => $_ } @
{$urpm->{depslist
}} };
47 $urpm->{srpm_names
}{$name};