diff options
author | Martin Pitt <martin.pitt@canonical.com> | 2010-11-12 16:53:51 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@canonical.com> | 2010-11-12 16:53:51 +0100 |
commit | e0043d1d27462edd71df1a3a8005383f9a3f5616 (patch) | |
tree | 9c8f44c299b614f71ec31fa53dbf440b0f89e07d | |
parent | a3aa462f6a1c58ca0030197158b002dfd5ce0704 (diff) |
cmdline/apt-changelog: Filter out multiple results for a source package,
just take the latest one.
-rwxr-xr-x | cmdline/apt-changelog | 2 | ||||
-rw-r--r-- | debian/changelog | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/cmdline/apt-changelog b/cmdline/apt-changelog index ac2b6e5fb..a333355a0 100755 --- a/cmdline/apt-changelog +++ b/cmdline/apt-changelog @@ -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 diff --git a/debian/changelog b/debian/changelog index b31952b02..b7f290713 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 |