aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-18 17:20:55 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-18 17:20:55 +0000
commit7bf90f754dc9cf3e7199a8c442626fe3527b82ad (patch)
tree2eb3555dabe5d05a5acce3cb4a54ea5bbb96e868 /URPM.xs
parent953f255fb3a782c426d149ee558841473255526f (diff)
downloadperl-URPM-7bf90f754dc9cf3e7199a8c442626fe3527b82ad.tar
perl-URPM-7bf90f754dc9cf3e7199a8c442626fe3527b82ad.tar.gz
perl-URPM-7bf90f754dc9cf3e7199a8c442626fe3527b82ad.tar.bz2
perl-URPM-7bf90f754dc9cf3e7199a8c442626fe3527b82ad.tar.xz
perl-URPM-7bf90f754dc9cf3e7199a8c442626fe3527b82ad.zip
(obsoletes_overlap) drop 'direction' parameter
also fix 'direction' default value for provides_overlap() it was broken since commit r4914 on 2012-06-13: "(provides_overlap) alias it with obsoletes_overlap (saves another 1.1% of code size)"
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs5
1 files changed, 2 insertions, 3 deletions
diff --git a/URPM.xs b/URPM.xs
index 28a5eeb..4687f86 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1965,10 +1965,9 @@ Pkg_obsoletes_nosense(pkg)
SPAGAIN;
int
-Pkg_obsoletes_overlap(pkg, s, direction=-1)
+Pkg_obsoletes_overlap(pkg, s)
URPM::Package pkg
char *s
- int direction
ALIAS:
provides_overlap = 1
PREINIT:
@@ -2006,7 +2005,7 @@ Pkg_obsoletes_overlap(pkg, s, direction=-1)
os.evr = s;
} else
os.evr = "";
- os.direction = direction;
+ os.direction = ix == 0 ? -1 : 1;
/* mark end of name */
if (eon) {
eonc = *eon;