Package: devscripts
Version: 2.9.19bpo1
Severity: wishlist

Hi Julian,

just before discovering that there's an updated version of devscripts on
backports.org, and that this version has a --force-bad-version option, I
implemented a similar functionality in a local copy and wanted to submit
it as a patch.  Now I found that this has already done;  however, I have
implemented it a bit differently.  The core difference is

        if (system("dpkg --compare-versions $VERSION lt $NEW_VERSION" .
                  " 2>/dev/null 1>&2")) {
-           if ($opt_b) {
            if ($NEW_VERSION =~ /$allowed_lower_versions/) {
                warn "$progname warning: new version ($NEW_VERSION) is less 
than\n" .
                    "the current version number ($VERSION).\n";
            } else {
                fatal "New version specified ($NEW_VERSION) is less than\n" .
                    "the current version number ($VERSION)!  Use -b to force.";
            }
        }

and the commandline option and configuration variable takes a pattern
('bpo' by default).  

I think this would make the usage of this possibility more convenient: I
wouldn't want to completely disable the version check by setting the
force variable in the configuration file.  On the other hand, setting
the pattern is pretty safe.

I can provide a patch if you like.

Regards, Frank

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (99, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.16-2-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages devscripts depends on:
ii  debianutils           2.8.4              Miscellaneous utilities specific t
ii  dpkg-dev              1.10.28            Package building tools for Debian
ii  libc6                 2.3.2.ds1-22sarge3 GNU C Library: Shared libraries an
ii  perl                  5.8.4-8sarge4      Larry Wall's Practical Extraction 
ii  sed                   4.1.2-8            The GNU sed stream editor

-- no debconf information

-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)

Reply via email to