aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/simplaret2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplaret b/src/simplaret
index 11b1641..cfd02f5 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -359,7 +359,7 @@ function simplaret_get {
candidate="`basename $file`"
if [ "`package_name $candidate`" == "$1" ]; then
# check if has the same version and build number, otherwise erase the old one
- for result in `simplaret_search $candidate -basename-only`; do
+ for result in `simplaret_search $(package_name $candidate) -basename-only`; do
if [ "`package_name $candidate`" == "`package_name $result`" ] && \
[ "`package_version $candidate`" == "`package_version $result`" ] && \
[ "`package_build $candidate`" == "`package_build $result`" ]; then