Package: pkgsync
Severity: normal
Version: 1.22

>From /usr/sbin/pkgsync:

                                        aptitude -F '%p' search 
".*-image-$KVERS" | sed "s/ \+$//" 2>/dev/null || true

aptitude search will find any packages matching the pattern, including
the debug package.

Fix is trivial, just add a $ to the end of the pattern:

root@tristran:~# KVERS=$( uname -r )
root@tristran:~#                                         aptitude -F '%p' 
search ".*-image-$KVERS" | sed "s/ \+$//" 2>/dev/null || true
linux-image-3.2.0-4-amd64
linux-image-3.2.0-4-amd64-dbg
root@tristran:~#                                         aptitude -F '%p' 
search ".*-image-$KVERS$" | sed "s/ \+$//" 2>/dev/null || true
linux-image-3.2.0-4-amd64
root@tristran:~#

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to