[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#524632: linux-support-2.6.29-1: rules.include uses wrong regexp to detect binary NMU



Package: linux-support-2.6.29-1
Version: 2.6.29-3
Severity: normal
Tags: patch


Hi,

/usr/src/linux-support-*/modules/rules.include uses a wrong sed
expression to detect binary NMUs:

    dpkg-parsechangelog | sed -ne 's,^Version: .*\+b\(.*\)$$,\1,p'

This incorrectly triggers on versions like

    1.2.3~beta1-1
    1.2.3-4.0anbe2

because (in sed) "\+" is a regexp commmand char, while "+" is a char literal.
Please change this to

    sed -ne 's,^Version: .*+b\(.*\)$$,\1,p'

You may also consider restricting it to "+b" followed by a number:

    sed -ne 's,^Version: .*+b\([0-9]\+\)$$,\1,p'

Thanks.


Andreas

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable'), (130, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages linux-support-2.6.29-1 depends on:
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-central                0.6.11     register and build utility for Pyt

linux-support-2.6.29-1 recommends no packages.

linux-support-2.6.29-1 suggests no packages.

-- no debconf information



Reply to: