summaryrefslogtreecommitdiffstats
path: root/db-update
diff options
context:
space:
mode:
authorAndrea Scarpino <andrea@archlinux.org>2010-03-31 23:44:06 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-03-31 23:45:33 +0200
commit154b5301ff08ef29ff69afc17789a4f1a6a00c20 (patch)
tree8d2bbb7d407e903ce37571f931052a40f72d5279 /db-update
parent57987ae42fb58c58e044bfd7d3486010b32bb313 (diff)
downloaddbscripts-154b5301ff08ef29ff69afc17789a4f1a6a00c20.tar.gz
dbscripts-154b5301ff08ef29ff69afc17789a4f1a6a00c20.tar.xz
fix permissions of incoming packages20100410
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update2
1 files changed, 2 insertions, 0 deletions
diff --git a/db-update b/db-update
index 82d2e25..e4f8020 100755
--- a/db-update
+++ b/db-update
@@ -219,6 +219,7 @@ for current_arch in ${ARCHES[@]}; do
if [ $(getpkgfiles "$WORKDIR/build/"*-$current_arch$PKGEXT 2>/dev/null | wc -l) != 0 ]; then
echo "Copying new files to '$ftppath'"
for f in "$WORKDIR/build/"*-$current_arch$PKGEXT; do
+ /bin/chmod 664 "$f" &>/dev/null
if ! /bin/cp "$f" "$ftppath/"; then
die "error: failure while copying files to $ftppath"
fi
@@ -227,6 +228,7 @@ for current_arch in ${ARCHES[@]}; do
if [ $(getpkgfiles "$WORKDIR/build/"*-any$PKGEXT 2>/dev/null | wc -l) != 0 ]; then
echo "Copying new files to '$ftppath_any' and symlinking"
for f in "$WORKDIR/build/"*-any$PKGEXT; do
+ /bin/chmod 664 "$f" &>/dev/null
if ! /bin/cp "$f" "$ftppath_any"; then
die "error: failure while copying files to $ftppath_any"
fi