diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2006-12-11 01:53:28 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2006-12-11 01:53:28 +0000 |
commit | 7853b58334f7e7512b5ef060c6cd29c01896d68b (patch) | |
tree | 01c12db016c34a37a0fc4c5b5d1725a6f1161b14 /src/simplaret | |
parent | 9c906c856831b45c93d7bababaf44d90e20eb67e (diff) | |
download | simplepkg-7853b58334f7e7512b5ef060c6cd29c01896d68b.tar.gz simplepkg-7853b58334f7e7512b5ef060c6cd29c01896d68b.tar.bz2 |
repos: added patches metafiles support
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@75 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src/simplaret')
-rwxr-xr-x | src/simplaret | 9 |
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 |