diff options
author | Francois Pons <fpons@mandriva.com> | 2000-06-19 09:44:00 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-06-19 09:44:00 +0000 |
commit | 0a2e340ded0614f73596bd90e586b5a8797fcbd2 (patch) | |
tree | 13d9216118fe7c2dd8d59d286e60bba265329dc4 /tools/syncrpms | |
parent | f6eb0d8e0240ce36d5ba5db16722b7d663b22d6f (diff) | |
download | drakx-backup-do-not-use-0a2e340ded0614f73596bd90e586b5a8797fcbd2.tar drakx-backup-do-not-use-0a2e340ded0614f73596bd90e586b5a8797fcbd2.tar.gz drakx-backup-do-not-use-0a2e340ded0614f73596bd90e586b5a8797fcbd2.tar.bz2 drakx-backup-do-not-use-0a2e340ded0614f73596bd90e586b5a8797fcbd2.tar.xz drakx-backup-do-not-use-0a2e340ded0614f73596bd90e586b5a8797fcbd2.zip |
*** empty log message ***
Diffstat (limited to 'tools/syncrpms')
-rwxr-xr-x | tools/syncrpms | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/syncrpms b/tools/syncrpms index d18bdc025..ccb806d6c 100755 --- a/tools/syncrpms +++ b/tools/syncrpms @@ -66,7 +66,7 @@ sub get_rpms { opendir D, $dir or die "cannot open directory $dir\n"; map { - if (/([^\/]*?)-([^-]*)-([^-]*)\.([^-]*)\.rpm$/) { + if (/([^\/]*?)-([^-]*)-([^-]*)\.([^-\.]*)\.rpm$/) { my $key = "$1 $4"; #- get name including architecture. if ($rpms->{$key}) { if (version_compare($2, $rpms->{$key}{version}) > 0 || @@ -255,10 +255,10 @@ sub main { #- parse directory structures. get_rpms($_, \%source, \%flag, 0) foreach @from_rpms; - get_rpms($_, \%target, \%flag, 1) foreach @to_rpms; - print STDERR "reading " . scalar(keys %source) . " packages as source rpms from\n"; print STDERR " $_\n" foreach @from_rpms; + + get_rpms($_, \%target, \%flag, 1) foreach @to_rpms; print STDERR "reading " . scalar(keys %target) . " packages as target rpms from\n"; print STDERR " $_\n" foreach @to_rpms; |