]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
added variable DISTRO_UPDATED
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 23 Jan 2007 12:13:47 +0000 (12:13 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 23 Jan 2007 12:13:47 +0000 (12:13 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@112 04377dda-e619-0410-9926-eae83683ac58

simplepkg.SlackBuild
src/simplaret

index 54fcd7c45999293de16e485bc1a216f9fc80446e..5ab80af163c8338f057425baf1b703ac2e328588 100755 (executable)
@@ -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"
index 2dcfede0b7f79c1f31b2fa293fcbb32571f42fd4..97627d6be3f2ed37dbacd2d2e8049f6166b6faa8 100755 (executable)
@@ -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