aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-12 17:36:31 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-01-12 17:36:31 +0000
commit90815cbad3c49fb2e39108e43019fd6901e8f71b (patch)
treeb6ac6adecded5c368ababc30a3d8a3fe26bd797e /src
parent8cf99d69bb1e8470c8a1095b1127d5cdae4b54be (diff)
downloadsimplepkg-90815cbad3c49fb2e39108e43019fd6901e8f71b.tar.gz
simplepkg-90815cbad3c49fb2e39108e43019fd6901e8f71b.tar.bz2
simplaret: simplaret_get_jail_patches new behaviour
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@98 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-xsrc/simplaret14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/simplaret b/src/simplaret
index 8f8ceb6..f080748 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -562,16 +562,26 @@ function simplaret_get_jail_patches {
echo fetching patches for arch $ARCH and version $VERSION for jail $root
- # list all available patches
- for sugested in `simplaret_search --formatted | grep patches`; do
+ # list all available patches from PATCHES and ROOT repositories
+ # old behaviour: for sugested in `simplaret_search --formatted | grep patches`; do
+ for sugested in `simplaret_search --formatted | grep patches | grep -v ",repos," | grep -v ",noarch,"`; do
simplaret_search_and_download_patch
done
# grab patches from every other places
if [ "$CONSIDER_ALL_PACKAGES_AS_PATCHES" == "1" ]; then
+
+ # old behaviour was just one loop:
+ # for sugested in `simplaret_search --formatted | grep -v patches`; do
+
+ for sugested in `simplaret_search --formatted | grep patches | grep ",repos," | grep ",noarch,"`; do
+ simplaret_search_and_download_patch
+ done
+
for sugested in `simplaret_search --formatted | grep -v patches`; do
simplaret_search_and_download_patch
done
+
fi
# restore arch and version