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)"
# 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