Package: debian-goodies
Version: 0.64
Severity: wishlist
Tags: patch
Hi,
A common pattern for me is that I will start debmany with, say,
"debconf" as the package name. However, the documentation I want to read
is actually in a "debconf-doc" package.
I then have to either remember that this package exists
or—worse—manually find out whether it does, which is quite tedious. It
would be nice if debmany provided a hint for this case.
Patch attached.
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/debmany/debmany b/debmany/debmany
index 987e347..293b87c 100755
--- a/debmany/debmany
+++ b/debmany/debmany
@@ -229,6 +229,18 @@ else
fi
fi
+if [ -z "$file" ]
+then
+ for suffix in -doc
+ do
+ otherpackage="$package$suffix"
+ if apt-cache show "$otherpackage" >/dev/null 2>&1
+ then
+ echo "I: A package called $otherpackage also exists - you may wish to
try there" >&2
+ fi
+ done
+fi
+
if [ "$status" = "installed" ]
then
# mode 2