summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua I. Haase H. (xihh) <hahj87@gmail.com>2012-06-04 23:47:23 -0500
committerJoshua I. Haase H. (xihh) <hahj87@gmail.com>2012-06-04 23:47:23 -0500
commit8df96ff5b1d2165b777e98a0f16be7f0499f9565 (patch)
tree11b9e21c27f0dfa779caca820948d838e66a437f
parentf370b80d4df29991c523ed8af5dc2cb00e611b6e (diff)
Updated librechroot message.
-rwxr-xr-xfullpkg2
-rwxr-xr-xlibrechroot6
2 files changed, 6 insertions, 2 deletions
diff --git a/fullpkg b/fullpkg
index 9a03b82..6d6153a 100755
--- a/fullpkg
+++ b/fullpkg
@@ -20,7 +20,7 @@ usage() {
}
-while getopts 'haA:l:nm:' arg; do
+while getopts 'h' arg; do
case "$arg" in
h) usage ;;
esac
diff --git a/librechroot b/librechroot
index 9e292f5..ae4a94b 100755
--- a/librechroot
+++ b/librechroot
@@ -67,7 +67,7 @@ while [ "\$count" -lt "3" ]; do
done
-echo "Cleaning failed: please report error"
+echo "Please run \`update-cleansystem\' and try again"
EOF
) > "${CHROOTDIR}/${CHROOTNAME}/clean"
@@ -81,13 +81,17 @@ EOF
function clean_repo {
msg "Cleaning repo for chroot: ${CHROOTDIR}/${CHROOTNAME}"
+
if [ -d "${CHROOTDIR}/${CHROOTNAME}/repo" ]; then
find "${CHROOTDIR}/${CHROOTNAME}/repo/" -mindepth 1 -delete
else
mkdir -p "${CHROOTDIR}/${CHROOTNAME}/repo"
fi
+
bsdtar -czf "${CHROOTDIR}/${CHROOTNAME}/repo/repo.db.tar.gz" -T /dev/null
ln -s "repo.db.tar.gz" "${CHROOTDIR}/${CHROOTNAME}/repo/repo.db"
+
+ exit 0
}
source /etc/libretools.conf