summaryrefslogtreecommitdiff
path: root/lib/sbin/checkout.pl
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-07-18 09:07:47 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-07-18 09:07:47 +0000
commite9033ed6f914dd008f50c15f85fc56e8a458a210 (patch)
tree6506e5441a04f94dde3a9c2841e6c37b74be10ce /lib/sbin/checkout.pl
parent8b260490a374c014cc038c0166a183eb2170c85c (diff)
Fixed default string for checking out all packages or thorns
git-svn-id: http://svn.cactuscode.org/flesh/trunk@720 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/checkout.pl')
-rw-r--r--lib/sbin/checkout.pl12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/sbin/checkout.pl b/lib/sbin/checkout.pl
index be2e9aeb..dc045590 100644
--- a/lib/sbin/checkout.pl
+++ b/lib/sbin/checkout.pl
@@ -85,7 +85,11 @@ sub get_packages
chdir packages || die "Could not find packages directory";
$range = <STDIN>;
-
+ if ($range =~ /^\s*$/)
+ {
+ $range = "1-$count";
+ }
+
while ($range =~/^([0-9]+(?:-[0-9]+)?),?/)
{
$range = $';
@@ -142,7 +146,11 @@ sub get_thorns
chdir packages || die "Could not find packages directory\n";
$range = <STDIN>;
-
+ if ($range =~ /^\s*$/)
+ {
+ $range = "1-$count";
+ }
+
while ($range =~/^([0-9]+(?:-[0-9]+)?),?/)
{
$range = $';