]> git.saurik.com Git - apt.git/commitdiff
cmdline/apt-changelog: Filter out multiple results for a source package,
authorMartin Pitt <martin.pitt@canonical.com>
Fri, 12 Nov 2010 15:53:51 +0000 (16:53 +0100)
committerMartin Pitt <martin.pitt@canonical.com>
Fri, 12 Nov 2010 15:53:51 +0000 (16:53 +0100)
just take the latest one.

cmdline/apt-changelog
debian/changelog

index ac2b6e5fbda40b36f5834169770cf11953f23552..a333355a0983415fb02c1031f501bfa8f27d2f8d 100755 (executable)
@@ -26,7 +26,7 @@ if [ -z "$version" ]; then
 fi
 
 # turn binary package names into source
-if src=`apt-cache show $pkg 2>/dev/null| grep ^Source:`; then
+if src=`apt-cache show $pkg 2>/dev/null| grep -m 1 ^Source:`; then
     pkg=${src#Source: }
 fi
 
index b31952b0229025362732d72754a54cd26de1b7b8..b7f290713bccd69bf6b84ecadbb2cd85956daf08 100644 (file)
@@ -1,3 +1,10 @@
+apt (0.8.8ubuntu3) UNRELEASED; urgency=low
+
+  * cmdline/apt-changelog: Filter out multiple results for a source package,
+    just take the latest one.
+
+ -- Martin Pitt <martin.pitt@ubuntu.com>  Fri, 12 Nov 2010 16:53:31 +0100
+
 apt (0.8.8ubuntu2) natty; urgency=low
 
   * Add cmdline/apt-changelog: Script to fetch package changelog from