]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
simplaret: simplaret_get_jail_patches new behaviour
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 12 Jan 2007 17:36:31 +0000 (17:36 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 12 Jan 2007 17:36:31 +0000 (17:36 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@98 04377dda-e619-0410-9926-eae83683ac58

src/simplaret

index 8f8ceb6cf9f3ee6b670912965edecb6aefa7579b..f0807480bbd880e7cfd8e5741b7791b29da8c39d 100755 (executable)
@@ -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