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 /cmdline | |
parent | a3aa462f6a1c58ca0030197158b002dfd5ce0704 (diff) |
cmdline/apt-changelog: Filter out multiple results for a source package,
just take the latest one.
Diffstat (limited to 'cmdline')
-rwxr-xr-x | cmdline/apt-changelog | 2 |
1 files changed, 1 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 |