aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsimplepkg.SlackBuild2
-rwxr-xr-xsrc/simplaret9
2 files changed, 7 insertions, 4 deletions
diff --git a/simplepkg.SlackBuild b/simplepkg.SlackBuild
index 54fcd7c..5ab80af 100755
--- a/simplepkg.SlackBuild
+++ b/simplepkg.SlackBuild
@@ -6,7 +6,7 @@
PACKAGE="simplepkg"
PACK_DIR="package-$PACKAGE"
BUILD=${BUILD:=1rha}
-VERSION="0.4.9pre8"
+VERSION="0.4.9pre9"
ARCH="noarch"
LIBEXEC="/usr/libexec/$PACKAGE"
BINDIR="/usr/bin"
diff --git a/src/simplaret b/src/simplaret
index 2dcfede..97627d6 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -566,14 +566,17 @@ function simplaret_get_jail_patches {
ARCH="`default_arch $root`"
VERSION="`default_version $root`"
- # we need to do that for each arch/version pairs
- simplaret_update
-
# in case there's something wrong with the jail, abort
if [ -z "$VERSION" ] || [ -z "$ARCH" ]; then
return
fi
+ # we need to do that for each arch/version pairs, but just once for each pair
+ if ! echo "$DISTRO_UPDATED" | grep -q " $ARCH:$VERSION "; then
+ simplaret_update
+ DISTRO_UPDATED="$DISTRO_UPDATED $ARCH:$VERSION " # the ending space is important
+ fi
+
echo fetching patches for arch $ARCH and version $VERSION for jail $root
# list all available patches from PATCHES and ROOT repositories