From f814943b4a4295f7a930fba28300e01a6c2cb3d7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 15 Jun 2012 17:38:13 +0000 Subject: (ranges_overlap,obsoletes_overlap) drop unused no_promote parameter rationale: it was never set to 0 for nearly a decade this should have been ripped rigth after commit r227323 by pixel on Sep 7 2007: "simplify: nopromoteepoch is always 1 (no caller ever define it)" --- URPM.pm | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'URPM.pm') diff --git a/URPM.pm b/URPM.pm index f3de814..58219c2 100644 --- a/URPM.pm +++ b/URPM.pm @@ -320,7 +320,7 @@ parse_synthesis()). Force the re-reading of the RPM configuration files. -=item URPM::ranges_overlap($range1, $range2 [, $nopromoteepoch]) +=item URPM::ranges_overlap($range1, $range2) This utility function compares two version ranges, in order to calculate dependencies properly. The ranges have roughly the form @@ -329,13 +329,6 @@ dependencies properly. The ranges have roughly the form where epoch, version and release are RPM-style version numbers. -If the optional parameter $nopromoteepoch is true, and if the 2nd range has no -epoch while the first one has one, then the 2nd range is assumed to have an -epoch C<== 0>. - -B: $nopromoteepoch actually defaults to 1, so if you're going to -pass a variable, make sure undef is treated like 1, not 0. - =item $urpm->parse_synthesis($file [, callback => sub {...} ]) This method gets the B and the B from a synthesis file @@ -636,7 +629,7 @@ Full obsoletes tags Just the obsoleted package name. -=item $package->obsoletes_overlap($s, [$nopromoteepoch, [$direction] ]) +=item $package->obsoletes_overlap($s, [$direction]) =item $package->os() @@ -654,7 +647,7 @@ Full provides tags Just the provided package name. -=item $package->provides_overlap($s, [$nopromoteepoch,] [$direction]) +=item $package->provides_overlap($s, [$direction]) =item $package->rate() -- cgit v1.2.1