From 7853b58334f7e7512b5ef060c6cd29c01896d68b Mon Sep 17 00:00:00 2001 From: rhatto Date: Mon, 11 Dec 2006 01:53:28 +0000 Subject: repos: added patches metafiles support git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@75 04377dda-e619-0410-9926-eae83683ac58 --- src/simplaret | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/simplaret') 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 -- cgit v1.2.3