From 488a906c151251df637eeee38fc820ef905f0ffc Mon Sep 17 00:00:00 2001 From: rhatto Date: Mon, 9 Apr 2007 16:09:24 +0000 Subject: simplaret: small fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@327 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/simplaret | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'trunk/src') 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 -- cgit v1.2.3