Package: alien
Version: 8.52
Severity: wishlist
Tags: patch

Hi,

it happened to me that I converted an RPM to DEB only to find out some
time later that locally installed libraries had been taken into account
for the dependencies.  In order to rectify this problem, I wanted to
regenerate a DEB from the very same RPM on a clean system, and I wanted
this new DEB to have a higher version number than the one before so that
I could easily roll it out to a few machines.  I added an option
`--bump' to alien which allows to bump the release by more than 1.
Patch follows.

--- alien.org   2005-06-02 20:04:24.000000000 +0200
+++ alien       2005-06-02 20:08:00.000000000 +0200
@@ -346,7 +346,7 @@
 # Start by processing the parameters.
 my (%destformats, $generate, $install, $single, $scripts, $patchfile,
     $nopatch, $tgzdescription, $tgzversion, $keepversion, $fixperms, $test,
-    $anypatch);
+    $anypatch, $versionbump);
 
 # Bundling is nice anyway, and it is required or Getopt::Long will confuse
 # -T and -t.
@@ -373,6 +373,7 @@
        "verbose|v"      => \$Alien::Package::verbose,
        "veryverbose"    => sub { $Alien::Package::verbose=2 },
        "keep-version|k" => \$keepversion,
+       "bump=s"         => \$versionbump,
        "fixperms"       => \$fixperms,
        "help|h"         => \&usage,
 ) || usage();
@@ -451,7 +452,8 @@
        # Increment release.
        unless (defined $keepversion) {
                $^W=0; # Shut of possible "is not numeric" warning.
-               $package->release($package->release + 1);
+               $package->release($package->release
+                       + ( defined($versionbump)? $versionbump : 1));
                $^W=1; # Re-enable warnings.
        }
        
-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages alien depends on:
ii  cpio                          2.5-1.2    GNU cpio -- a program to manage ar
ii  debhelper                     4.2.32     helper programs for debian/rules
ii  dpkg-dev                      1.10.27    Package building tools for Debian
ii  make                          3.80-9     The GNU version of the "make" util
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 
ii  rpm                           4.0.4-31   Red Hat package manager

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to