Handle all arguments.
authorMikko Värri <vmj@linuxbox.fi>
Tue, 27 Sep 2011 00:17:37 +0000 (03:17 +0300)
committerMikko Värri <vmj@linuxbox.fi>
Tue, 27 Sep 2011 00:17:37 +0000 (03:17 +0300)
bin/test

index 2eb5301..7007c2e 100644 (file)
--- a/bin/test
+++ b/bin/test
@@ -52,5 +52,8 @@ sub print_slack_required {
     }
 }
 
-my $pkg = Slackware::Package->new_from_pkg_db_entry($ARGV[0]);
-print_slack_required($_) foreach $pkg->dependencies;
+foreach my $pkg_db_entry (@ARGV) {
+    print "==> $pkg_db_entry\n";
+    my $pkg = Slackware::Package->new_from_pkg_db_entry($pkg_db_entry);
+    print_slack_required($_) foreach $pkg->dependencies;
+}