]> git.donarmstrong.com Git - infobot.git/commitdiff
dinfo
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 22 Oct 2003 17:57:17 +0000 (17:57 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 22 Oct 2003 17:57:17 +0000 (17:57 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@855 c11ca15a-4712-0410-83d8-924469b57eb5

src/CommandStubs.pl
src/Modules/Debian.pl

index 3a2814c49d8956e285469b72db6a128a4edaabc0..c37729a42ca267363f62334da7a92af67c07aea3 100644 (file)
@@ -279,7 +279,7 @@ sub Modules {
        return;
     }
 
-    my $debiancmd       = 'conflicts?|depends?|desc|file|d?info|provides?';
+    my $debiancmd       = 'conflicts?|depends?|desc|file|(?:d)?info|provides?';
     $debiancmd         .= '|recommends?|suggests?|maint|maintainer';
 
     if ($message =~ /^($debiancmd)(\s+(.*))?$/i) {
index 8afaa86a029fd16b42837e11535cbe77068c172c..45d7834cd50e96c222500d08063ce97d6f5ab268 100644 (file)
@@ -710,6 +710,8 @@ sub infoPackages {
     }
     my %pkg = &getPackageInfo($package, $file);
 
+    $query = "info" if ($query eq "dinfo");
+
     # 'fm'-like output.
     if ($query eq "info") {
        if (scalar keys %pkg <= 5) {