summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-15 23:21:45 +0200
committerErich Eckner <git@eckner.net>2018-10-15 23:21:45 +0200
commit3bf0977258f223c1ad8b36600f464acdeb272b0f (patch)
tree6704d7ba65e0ad45ba6135abff6d8bf7a55b2fd4
parent12697eb5bae92e39bf8f3fcc5ae83f007a10413e (diff)
downloadarchlinuxewe.git.save-3bf0977258f223c1ad8b36600f464acdeb272b0f.tar.xz
archPackagesUpdate: work even if destination of pacman-source is not owned by us
-rwxr-xr-xarchPackagesUpdate5
1 files changed, 2 insertions, 3 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index 50c8d713..ccf9bf7b 100755
--- a/archPackagesUpdate
+++ b/archPackagesUpdate
@@ -681,9 +681,8 @@ then
while read -r arch; do
if [ "${paket}" = 'pacman-static' ] && \
[ "${arch}" = 'i686' ]; then
- tar -xJf "${paket_teile[*]}" -C /srv/arch-mirror/sources.archlinux32/sources/ --strip-components=2 usr/bin/pacman-static 2>/dev/null
- rm -f /srv/arch-mirror/sources.archlinux32/sources/pacman-static.sig
- gpg --detach-sign -u "${key}" --no-armor /srv/arch-mirror/sources.archlinux32/sources/pacman-static
+ tar -OxJf "${paket_teile[*]}" usr/bin/pacman-static 2>/dev/null > /srv/arch-mirror/sources.archlinux32/sources/pacman-static
+ gpg --detach-sign -u "${key}" --yes --no-armor /srv/arch-mirror/sources.archlinux32/sources/pacman-static
fi
paket_teile=(