From 087d59e2d4efaef85bbb71a4d42422838b40de8e Mon Sep 17 00:00:00 2001 From: belliash Date: Sat, 4 Feb 2012 17:25:18 +0100 Subject: [PATCH] bugfix --- libraries/repositories | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/repositories b/libraries/repositories index 96de5b5..6d8b208 100644 --- a/libraries/repositories +++ b/libraries/repositories @@ -321,10 +321,10 @@ function pushRepository() { #------------------------------------------------------------------------------- function snapshotPortage() { local SOURCE="${1}" - local TARBALL="portage-$(date +${TARBALLDATE}).tar.${TARBALLFORMAT}" + local TARBALL="portage-$(date +${TARBALLDATE}).tar" if [ ! -d ${SNAPSHOTSDIR} ]; then makeDirectory ${SNAPSHOTSDIR} || return 1 - elif [ ! -f ${SNAPSHOTSDIR}/${TARBALL} ]; then + elif [ ! -f ${SNAPSHOTSDIR}/${TARBALL}.${TARBALLFORMAT} ]; then rm -rf "${TEMPDIR}/portage" case ${2} in [Gg][Ii][Tt]) @@ -338,7 +338,6 @@ function snapshotPortage() { return 1 ;; esac - TARBALL=${TARBALL%.*} run "tar -c -C ${TEMPDIR} portage > ${SNAPSHOTSDIR}/${TARBALL}" if [ ${?} -ne 0 ]; then rm -f ${SNAPSHOTSDIR}/${TARBALL} @@ -365,6 +364,7 @@ function snapshotPortage() { return 1 fi fi + TARBALL="${TARBALL}.${TARBALLFORMAT}" if [ ! -f ${SNAPSHOTSDIR}/${TARBALL}.DIGESTS ]; then cd ${SNAPSHOTSDIR} generateDigests ${TARBALL}.DIGESTS ${TARBALL} || return 1