summaryrefslogtreecommitdiffstats
path: root/misc-scripts/make-sourceball
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-11-21 13:23:09 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-11-21 13:23:09 +0100
commit30a128a864bdbfc294b6ba6a49c9264570bb3c58 (patch)
treeff952c6710ee7d788a3159c51c39ab69b27f6585 /misc-scripts/make-sourceball
parent948583aebe9e8e5a3daa9131c99dc68724e06b49 (diff)
downloaddbscripts-30a128a864bdbfc294b6ba6a49c9264570bb3c58.tar.gz
dbscripts-30a128a864bdbfc294b6ba6a49c9264570bb3c58.tar.xz
sourceballs: Don't write any log
This is consistent with the other dbscripts. The output will be send to the mailinglist.
Diffstat (limited to 'misc-scripts/make-sourceball')
-rwxr-xr-xmisc-scripts/make-sourceball15
1 files changed, 7 insertions, 8 deletions
diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball
index 66d3dad..fccc4b5 100755
--- a/misc-scripts/make-sourceball
+++ b/misc-scripts/make-sourceball
@@ -47,17 +47,17 @@ create_srcpackage() {
msg "Creating source tarball for $packagename-$pkgver-$pkgrel"
fi
- local logfile="${LOGDIR}/sourceballs/$packagename"
- if ! /usr/bin/makepkg --allsource --ignorearch >"$logfile" 2>&1; then
+ /usr/bin/makepkg --allsource --ignorearch > "$WORKDIR/makepkg.log" 2>&1
+ if [ $? -ne 0 ]; then
error "Failed to download source for $packagename-$pkgver-$pkgrel ($reponame-$arch)"
- popd >/dev/null
+ local line
+ while read line; do
+ msg2 "${line}"
+ done < "$WORKDIR/makepkg.log"
return 1
fi
- /bin/rm -f "$logfile"
-
- local pkg_file="${packagename}-${pkgver}-${pkgrel}${SRCEXT}"
- mv "$pkg_file" "${FTP_BASE}/${SRCPOOL}"
+ mv "${packagename}-${pkgver}-${pkgrel}${SRCEXT}" "${FTP_BASE}/${SRCPOOL}"
popd >/dev/null
@@ -68,7 +68,6 @@ create_srcpackage() {
}
set_umask
-[ ! -d "${LOGDIR}/sourceballs" ] && mkdir -p "${LOGDIR}/sourceballs"
cd "$WORKDIR"
failed=0