From 1a2baf57c530b266fc257d67dc884578381b6901 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 12 Jan 2007 14:28:29 +0000 Subject: simplaret: small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@95 04377dda-e619-0410-9926-eae83683ac58 --- src/simplaret | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/simplaret b/src/simplaret index ad0d99e..2ae5c0e 100755 --- a/src/simplaret +++ b/src/simplaret @@ -384,6 +384,8 @@ function simplaret_get { # get a package # usage: simplaret_get [--silent] + local silent + # prevent user to stay in $storage cd @@ -447,10 +449,13 @@ function simplaret_get { return 1 else if [ "$2" != "--silent" ]; then + silent="" echo package $candidate stored at $folder - else echo $folder/$candidate + else + echo $folder/$candidate + silent="--silent" fi - simplaret_checksum $storage/$repository_name/CHECKSUMS.md5 $folder/$candidate --silent + simplaret_checksum $storage/$repository_name/CHECKSUMS.md5 $folder/$candidate $silent return $? fi -- cgit v1.2.3