Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 5c2086e..463d28b 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -348,6 +348,7 @@ EOF
# Usage: download_sources $copydir $src_owner
# Globals:
# - SRCDEST
+# - USER
download_sources() {
local copydir=$1
local src_owner=$2
@@ -487,9 +488,6 @@ main() {
[[ ! -d $chrootdir ]] && die "No chroot dir defined, or invalid path '%s'" "$passeddir"
[[ ! -d $chrootdir/root ]] && die "Missing chroot dir root directory. Try using: mkarchroot %s/root base-devel" "$chrootdir"
- # Detect chrootdir filesystem type
- chroottype=$(stat -f -c %T "$chrootdir")
-
if [[ ${copy:0:1} = / ]]; then
copydir=$copy
else
@@ -541,7 +539,7 @@ main() {
install_packages "$copydir" "${install_pkgs[@]}"
ret=$?
# If there is no PKGBUILD we have done
- [[ -f PKGBUILD ]] || exit $ret
+ [[ -f PKGBUILD ]] || return $ret
fi
download_sources "$copydir" "$src_owner"