diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-01-23 12:13:47 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-01-23 12:13:47 +0000 |
commit | 7d475294da550148c62373bb3e0b87614208ef0b (patch) | |
tree | 86400b84c378e5b8a5264acab831a574b76c0e76 /src | |
parent | 7917321579025a2526f1a4021993b21e4ed6c80f (diff) | |
download | simplepkg-7d475294da550148c62373bb3e0b87614208ef0b.tar.gz simplepkg-7d475294da550148c62373bb3e0b87614208ef0b.tar.bz2 |
added variable DISTRO_UPDATED
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@112 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-x | src/simplaret | 9 |
1 files changed, 6 insertions, 3 deletions
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 |