aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-12 14:28:29 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-12 14:28:29 +0000
commit1a2baf57c530b266fc257d67dc884578381b6901 (patch)
treee82ecfcff957d5583fca601ea561823759091d9c /src
parent06755a33d81388f87f82e3902bc564440b09c04c (diff)
downloadsimplepkg-1a2baf57c530b266fc257d67dc884578381b6901.tar.gz
simplepkg-1a2baf57c530b266fc257d67dc884578381b6901.tar.bz2
simplaret: small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@95 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-xsrc/simplaret9
1 files changed, 7 insertions, 2 deletions
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 <package-name> [--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