1
0
mirror of https://github.com/fspc/dswim.git synced 2025-02-22 08:33:24 -05:00

Now swim won't exit when a package is not installed, so that -qi or -ql works

without stopping.
This commit is contained in:
freesource 2001-10-18 05:24:25 +00:00
parent cd139b15eb
commit bb7ee96ce4
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ sub description {
} }
else { else {
print "package $argument is not installed\n"; print "package $argument is not installed\n";
exit; return "not installed";
} }
} }
untie %db; untie %db;

View File

@ -532,7 +532,7 @@ sub file {
if (defined $argument) { if (defined $argument) {
if (!defined $db{"$argument"}) { if (!defined $db{"$argument"}) {
print "package $argument is not installed\n"; print "package $argument is not installed\n";
exit; return "not installed";
} }
} }
nfile(\%commands); nfile(\%commands);