Browse Source

Deal with Description-md5 fields in apt-cache show output.

I had to write a tight regexp that only allows Description-ll
and Description-ll_LL. That could be too tight, perhaps we'll
get some Description-ll_LL@foo fields or something.
tags/3.08
Joey Hess 9 years ago
parent
commit
d3e5883825
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      debian/changelog
  2. +1
    -1
      tasksel.pl

+ 1
- 0
debian/changelog View File

@@ -18,6 +18,7 @@ tasksel (3.08) UNRELEASED; urgency=low

[ Joey Hess ]
* Use dpkg-query to list packages, rather than parsing the status file.
* Deal with Description-md5 fields in apt-cache show output.
Closes: #657389

-- Christian Perrier <bubulle@debian.org> Mon, 05 Dec 2011 21:29:17 +0100


+ 1
- 1
tasksel.pl View File

@@ -322,7 +322,7 @@ sub getdescriptions {
local $/="\n\n";
while (<APT_CACHE>) {
my ($name)=/^Package: $taskpackageprefix(.*)$/m;
my ($description)=/^Description-.*: (.*)$/m;
my ($description)=/^Description-(?:[a-z][a-z](?:_[A-Z][A-Z])?): (.*)$/m;
($description)=/^Description: (.*)$/m
unless defined $description;
if (defined $name && defined $description) {


Loading…
Cancel
Save