summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-03-23 14:50:52 +0000
committerFrancois Pons <fpons@mandriva.com>2001-03-23 14:50:52 +0000
commite098254bafc8d10becd2d9c50f09d96a3fa19953 (patch)
tree6c288e5261813cfa8efe6d515315096d897a476f
parent93e9662916f3deb323814b3f0e83a5e102560f4b (diff)
downloaddrakx-backup-do-not-use-e098254bafc8d10becd2d9c50f09d96a3fa19953.tar
drakx-backup-do-not-use-e098254bafc8d10becd2d9c50f09d96a3fa19953.tar.gz
drakx-backup-do-not-use-e098254bafc8d10becd2d9c50f09d96a3fa19953.tar.bz2
drakx-backup-do-not-use-e098254bafc8d10becd2d9c50f09d96a3fa19953.tar.xz
drakx-backup-do-not-use-e098254bafc8d10becd2d9c50f09d96a3fa19953.zip
added size-stamp test to copy identical file in version, release.
-rwxr-xr-xtools/syncrpms4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/syncrpms b/tools/syncrpms
index ccb806d6c..f3fa8fb4d 100755
--- a/tools/syncrpms
+++ b/tools/syncrpms
@@ -176,7 +176,9 @@ sub sync_rpms {
if ($target->{$_}) {
if (version_compare($source->{$_}{version}, $target->{$_}{version}) > 0 ||
version_compare($source->{$_}{version}, $target->{$_}{version}) == 0 &&
- version_compare($source->{$_}{release}, $target->{$_}{release}) > 0) {
+ (version_compare($source->{$_}{release}, $target->{$_}{release}) > 0 ||
+ version_compare($source->{$_}{release}, $target->{$_}{release}) == 0 &&
+ -s "$source->{$_}{dir}/$source->{$_}{file}" != -s "$target->{$_}{dir}/$target->{$_}{file}")) {
if ($flag->{verbose}) {
print "updating $target->{$_}{dir}/$target->{$_}{file} with newer version $source->{$_}{file}\n";
}