Author: adam-guest
Date: 2008-03-06 19:22:42 +0000 (Thu, 06 Mar 2008)
New Revision: 1104

Modified:
   trunk/debian/changelog
   trunk/scripts/debi.pl
Log:
deb[ci]: Allow either package names or filenames to be passed on the
  command line (Closes: #469663)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-03-05 01:05:38 UTC (rev 1103)
+++ trunk/debian/changelog      2008-03-06 19:22:42 UTC (rev 1104)
@@ -22,6 +22,8 @@
     + Fix a potential false positive on "2>& 1"
   * bts: Allow the sendmail command to begin with a ~ (Closes: #469207)
   * debcommit: Set $SVKDIFF before calling "svk diff" (Closes: #469238)
+  * deb[ci]: Allow either package names or filenames to be passed on the
+    command line (Closes: #469663)
 
  -- Adam D. Barratt <[EMAIL PROTECTED]>  Sat, 01 Mar 2008 11:42:02 +0000
 

Modified: trunk/scripts/debi.pl
===================================================================
--- trunk/scripts/debi.pl       2008-03-05 01:05:38 UTC (rev 1103)
+++ trunk/scripts/debi.pl       2008-03-06 19:22:42 UTC (rev 1104)
@@ -362,10 +362,15 @@
        # don't want other archs' .debs:
        next unless $deb =~ /[_+]($arch|all)[\.+]/;
         my $pkg = $deb;
+       $pkg =~ s/_.*$//;
+
         if (@ARGV) {
             if (exists $pkgs{$pkg}) {
                 push @debs, $deb;
                 $pkgs{$pkg}++;
+           } elsif (exists $pkgs{$deb}) {
+               push @debs, $deb;
+               $pkgs{$deb}++;
             }
         } else {
             push @debs, $deb;



-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to