aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2006-12-09 15:06:03 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2006-12-09 15:06:03 +0000
commitcbdee9b4551199d785005154ca85d63f00957670 (patch)
treeb55d5a35968d2304c30ba732ea11cc38945a887b /src
parent00de8b40e5c95e7952e8f729943474f388483a5c (diff)
downloadsimplepkg-cbdee9b4551199d785005154ca85d63f00957670.tar.gz
simplepkg-cbdee9b4551199d785005154ca85d63f00957670.tar.bz2
simplaret: another small fix :)))
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@51 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-xsrc/simplaret8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/simplaret b/src/simplaret
index d400765..776e1b4 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -242,7 +242,7 @@ function simplaret_show_package {
elif [ "$2" == "-filename-only" ]; then
echo $1
elif [ "$2" == "-formatted" ]; then
- echo $1 $repos_type $repository
+ echo $1,$repos_type,$repository
else
if echo $1 | grep -q "/patches/"; then
patch="(patch)"
@@ -372,9 +372,9 @@ function simplaret_get {
# then search for the package in the repositories
for result in `simplaret_search $1 -formatted`; do
- file="`echo $result | awk '{ print $1 }'`"
- repos_type="`echo $result | awk '{ print $2 }'`"
- repository="`echo $result | awk '{ print $3 }'`"
+ file="`echo $result | cut -d , -f 1`"
+ repos_type="`echo $result | cut -d , -f 2`"
+ repository="`echo $result | cut -d , -f 3`"
simplaret_set_storage_folder
simplaret_repository_name