aboutsummaryrefslogtreecommitdiff
path: root/trunk/src
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src')
-rwxr-xr-xtrunk/src/simplaret9
1 files changed, 6 insertions, 3 deletions
diff --git a/trunk/src/simplaret b/trunk/src/simplaret
index 719063c..20ef8ea 100755
--- a/trunk/src/simplaret
+++ b/trunk/src/simplaret
@@ -423,8 +423,8 @@ function simplaret_purge {
if [ -z "$SILENT" ]; then
echo "$BASENAME: purging all packages $mtime_message for:"
- echo -e "\t- arch $ARCH and version $VERSION $and_patches"
- echo -e "\t- noarch folder"
+ echo -e "\t- Arch $ARCH and version $VERSION $and_patches"
+ echo -e "\t- Noarch folder"
fi
for repos_type in $which; do
@@ -508,7 +508,7 @@ function simplaret_get {
# then search for the package in the repositories
search="`simplaret_search $1 --formatted`"
- search_results="`echo $search | bc -l`"
+ search_results="`echo "$search" | wc -l`"
for result in $search; do
@@ -568,6 +568,9 @@ function simplaret_get {
if [ "$SIMPLARET_DOWNLOAD_FROM_NEXT_REPO" != "1" ]; then
return 1
else
+ if [ "$2" != "--silent" ]; then
+ echo Trying to fetch $candidate from the next repository...
+ fi
if (($search_results <= 0)); then
return 1
fi