summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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