summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-06-19 09:44:00 +0000
committerFrancois Pons <fpons@mandriva.com>2000-06-19 09:44:00 +0000
commit0a2e340ded0614f73596bd90e586b5a8797fcbd2 (patch)
tree13d9216118fe7c2dd8d59d286e60bba265329dc4 /tools
parentf6eb0d8e0240ce36d5ba5db16722b7d663b22d6f (diff)
downloaddrakx-0a2e340ded0614f73596bd90e586b5a8797fcbd2.tar
drakx-0a2e340ded0614f73596bd90e586b5a8797fcbd2.tar.gz
drakx-0a2e340ded0614f73596bd90e586b5a8797fcbd2.tar.bz2
drakx-0a2e340ded0614f73596bd90e586b5a8797fcbd2.tar.xz
drakx-0a2e340ded0614f73596bd90e586b5a8797fcbd2.zip
*** empty log message ***
Diffstat (limited to 'tools')
-rwxr-xr-xtools/syncrpms6
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;