diff options
-rwxr-xr-x | src/simplaret | 14 |
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 |