summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@canonical.com>2010-11-12 16:53:51 +0100
committerMartin Pitt <martin.pitt@canonical.com>2010-11-12 16:53:51 +0100
commite0043d1d27462edd71df1a3a8005383f9a3f5616 (patch)
tree9c8f44c299b614f71ec31fa53dbf440b0f89e07d /cmdline
parenta3aa462f6a1c58ca0030197158b002dfd5ce0704 (diff)
cmdline/apt-changelog: Filter out multiple results for a source package,
just take the latest one.
Diffstat (limited to 'cmdline')
-rwxr-xr-xcmdline/apt-changelog2
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