summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-06-21 16:39:14 +0000
committerFrancois Pons <fpons@mandriva.com>2001-06-21 16:39:14 +0000
commit0630fb8a8bb835e0a8dc1636c789a22c70889779 (patch)
treef457002df06d0a1b5be9b95f8be6033e354a74a0 /perl-install/pkgs.pm
parent0b46d42df00d497235dcd9a0ce151a080b066e9f (diff)
downloaddrakx-backup-do-not-use-0630fb8a8bb835e0a8dc1636c789a22c70889779.tar
drakx-backup-do-not-use-0630fb8a8bb835e0a8dc1636c789a22c70889779.tar.gz
drakx-backup-do-not-use-0630fb8a8bb835e0a8dc1636c789a22c70889779.tar.bz2
drakx-backup-do-not-use-0630fb8a8bb835e0a8dc1636c789a22c70889779.tar.xz
drakx-backup-do-not-use-0630fb8a8bb835e0a8dc1636c789a22c70889779.zip
added minimal support for rpmtools >= 3.0
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index b55e737ea..eb360a53f 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -509,7 +509,8 @@ sub getDeps {
local *F; open F, "$prefix/var/lib/urpmi/depslist.ordered" or die "can't find dependancies list";
local $_;
while (<F>) {
- my ($name, $version, $release, $sizeDeps) = /^(\S*)-([^-\s]+)-([^-\s]+)\s+(.*)/;
+ my ($name, $version, $release, $arch, $serial, $sizeDeps) =
+ /^([^:\s]*)-([^:\-\s]+)-([^:\-\s]+)\.([^:\.\-\s]*)(?::(\d+)\S*)?\s+(.*)/;
my $pkg = $packages->{names}{$name};
#- these verification are necessary in case of error, but are no more fatal as