summaryrefslogtreecommitdiffstats
path: root/tools/syncrpms
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-07-25 09:06:35 +0000
committerFrancois Pons <fpons@mandriva.com>2001-07-25 09:06:35 +0000
commite00f0405faf8edc53fcae09888e45a87f86b01a9 (patch)
tree32154cd20461d63e0a83d62628035f6ea1021806 /tools/syncrpms
parentee0a30f1cc747b64d28731c07253d9eb04c0e028 (diff)
downloaddrakx-backup-do-not-use-e00f0405faf8edc53fcae09888e45a87f86b01a9.tar
drakx-backup-do-not-use-e00f0405faf8edc53fcae09888e45a87f86b01a9.tar.gz
drakx-backup-do-not-use-e00f0405faf8edc53fcae09888e45a87f86b01a9.tar.bz2
drakx-backup-do-not-use-e00f0405faf8edc53fcae09888e45a87f86b01a9.tar.xz
drakx-backup-do-not-use-e00f0405faf8edc53fcae09888e45a87f86b01a9.zip
fixed still missing rpmtools:: before a version_compare ...
Diffstat (limited to 'tools/syncrpms')
-rwxr-xr-xtools/syncrpms2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syncrpms b/tools/syncrpms
index 891474b8b..946032e52 100755
--- a/tools/syncrpms
+++ b/tools/syncrpms
@@ -62,7 +62,7 @@ sub get_rpms {
my $key = "$1 $4"; #- get name including architecture.
if ($rpms->{$key}) {
if (rpmtools::version_compare($2, $rpms->{$key}{version}) > 0 ||
- rpmtools::version_compare($2, $rpms->{$key}{version}) == 0 && version_compare($3, $rpms->{$key}{release}) > 0) {
+ rpmtools::version_compare($2, $rpms->{$key}{version}) == 0 && rpmtools::version_compare($3, $rpms->{$key}{release}) > 0) {
if ($modifiable) {
if ($flag->{sorted}) {
print "you said rpms directory are sorted, so I keep obseleted $rpms->{$key}{file} by $_ in $rpms->{$key}{dir}\n" if $flag->{verbose};