aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-06-17 15:35:51 +0000
committerFrancois Pons <fpons@mandriva.com>2003-06-17 15:35:51 +0000
commit6cf39e1513cb12cbf071c6ad86fa47cbf86500bc (patch)
treef0e4eb3252b51e6a7978fd501913c31c381863ff /URPM.xs
parent4882262f5c9b4cccc0e3a4727da776b1ce7fceae (diff)
downloadperl-URPM-6cf39e1513cb12cbf071c6ad86fa47cbf86500bc.tar
perl-URPM-6cf39e1513cb12cbf071c6ad86fa47cbf86500bc.tar.gz
perl-URPM-6cf39e1513cb12cbf071c6ad86fa47cbf86500bc.tar.bz2
perl-URPM-6cf39e1513cb12cbf071c6ad86fa47cbf86500bc.tar.xz
perl-URPM-6cf39e1513cb12cbf071c6ad86fa47cbf86500bc.zip
fixed 0.91-2mdk
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs7
1 files changed, 5 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index 349fad6..8f48b1b 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2752,9 +2752,10 @@ Urpm_read_config_files()
read_config_files(1); /* force re-read of configuration files */
int
-Urpm_ranges_overlap(a, b)
+Urpm_ranges_overlap(a, b, b_nopromote=0)
char *a
char *b
+ int b_nopromote
PREINIT:
char *sa = a, *sb = b;
int aflags = 0, bflags = 0;
@@ -2817,8 +2818,10 @@ Urpm_ranges_overlap(a, b)
/* now compare epoch */
if (ea && eb)
sense = rpmvercmp(*ea ? ea : "0", *eb ? eb : "0");
+#ifdef RPM_42
else if (ea && *ea && atol(ea) > 0)
- sense = PROMOTE_EPOCH_SENSE;
+ sense = b_nopromote ? 1 : 0;
+#endif
else if (eb && *eb && atol(eb) > 0)
sense = -1;
/* now compare version and release if epoch has not been enough */