summaryrefslogtreecommitdiffstats
path: root/pm
diff options
context:
space:
mode:
Diffstat (limited to 'pm')
-rw-r--r--pm/MGATools/rpmsrate.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/pm/MGATools/rpmsrate.pm b/pm/MGATools/rpmsrate.pm
index 06ed2a2..d6c611b 100644
--- a/pm/MGATools/rpmsrate.pm
+++ b/pm/MGATools/rpmsrate.pm
@@ -114,6 +114,7 @@ sub cleanrpmsrate {
} elsif (my ($pg, $loc) = /^(.*)-([^-+]+)$/) {
if ($potloc{$pg}) {
my $pkg;
+ # try to lookup package in urpm first (if we got an $urpm and if media were parsed):
$pkg = $o_urpm->{rpm}{$o_urpm->{rpmkey}{key}{$key}} if ref($o_urpm);
# if package is not urpmi' synthesis, try to parse it directly:
@@ -122,6 +123,7 @@ sub cleanrpmsrate {
$pkg = $urpm2->{depslist}[$id];
}
+ # still nothing? bailout:
if (!$pkg) {
print "ERROR cleanrpmsrate: parse_rpm $dir/$rpm ($key) failed\n";
next;
@@ -209,6 +211,7 @@ sub cleanrpmsrate {
}
}
+ # process localized packages (eg: man-pages-XX, hunspell-XX, firefox-XX, ...)
if ($locale{$d} && $localized_pkg{$c}) {
foreach (sort @{$locale{$d}}) {
next if member($flat_path, @{$done{"$d-$_"}});