aboutsummaryrefslogtreecommitdiff
path: root/src/simplaret
diff options
context:
space:
mode:
Diffstat (limited to 'src/simplaret')
-rwxr-xr-xsrc/simplaret9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/simplaret b/src/simplaret
index 47e3f25..4f8a4cd 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -498,7 +498,7 @@ function simplaret_get_jail_patches {
ARCH="`cat $root/etc/slackware-version | awk '{ print $3 }' | sed -e 's/(//' -e 's/)//'`"
# in case there's something wrong with the jail, abort
- if [ -z "$VERSION" ] && [ -z "$ARCH" ]; then
+ if [ -z "$VERSION" ] || [ -z "$ARCH" ]; then
return
fi
@@ -512,14 +512,9 @@ function simplaret_get_jail_patches {
simplaret_search_and_download_patch
done
- # list all available patches in ROOT repositories
- for sugested in `simplaret_search patches -formatted | grep root`; do
- simplaret_search_and_download_patch
- done
-
# grab patches from every other places
if [ "$CONSIDER_ALL_PACKAGES_AS_PATCHES" == "1" ]; then
- for sugested in `simplaret_search patches -formatted | grep -v patches | grep -v root`; do
+ for sugested in `simplaret_search patches -formatted | grep -v patches`; do
simplaret_search_and_download_patch
done
fi