summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-16 14:17:04 +0200
committerErich Eckner <git@eckner.net>2019-07-16 14:17:04 +0200
commit321771b699b0a524c9fe7e4161bf1efdd29dafa6 (patch)
tree202f6180a9fea8996cec96e66b5051504c78c875
parentb7029002587823a51114c980e560dc9989ada1f0 (diff)
downloadarchlinuxewe.git.save-321771b699b0a524c9fe7e4161bf1efdd29dafa6.tar.xz
archPackagesUpdate: install [releng] packages in [archlinuxewe], too
-rwxr-xr-xarchPackagesUpdate105
1 files changed, 56 insertions, 49 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index df3c616e..afe1d51d 100755
--- a/archPackagesUpdate
+++ b/archPackagesUpdate
@@ -328,9 +328,10 @@ if ${aufRechenknecht}; then
if ${force}; then
printf '%s\n' "${singleArch}"
- elif [ "${repo}" == 'releng' ]; then
- [ ! -e "${pkgDir32}/${pkgFile}" ] && printf '%s\n' "${singleArch}"
else
+ if [ "${repo}" == 'releng' ]; then
+ [ ! -e "${pkgDir32}/${pkgFile}" ] && printf '%s\n' "${singleArch}"
+ fi
[ "${singleArch}" == "any" ] && \
for dir in ${pkgDir}/*; do
[ ! -d "${dir}" ] && continue
@@ -395,7 +396,11 @@ if ${aufRechenknecht}; then
)
archs[${#archs[@]}]="${singleArch}"
verss[${#verss[@]}]="${epoch:+${epoch}:}${pkgver}-${pkgrel}"
- repos[${#repos[@]}]="${repo}"
+ if [ "${repo}" != 'archlinuxewe' ]; then
+ repos[${#repos[@]}]="${repo} archlinuxewe"
+ else
+ repos[${#repos[@]}]="${repo}"
+ fi
done
fi
done
@@ -664,59 +669,61 @@ if ${aufRechenknecht}; then
}' \
"${checkDbSig}"
- if [ "${repo}" = 'releng' ]; then
+ for r in ${repo}; do
+ if [ "${r}" = 'releng' ]; then
+ printf '
+ cd "%s"' \
+ "${pkgDir32}"
+ else
+ printf '
+ cd "%s/%s"' \
+ "${pkgDir}" "${arch}"
+ fi
printf '
- cd "%s"' \
- "${pkgDir32}"
- else
+ for teil in %s; do' \
+ "${paket_teile[*]}"
printf '
- cd "%s/%s"' \
- "${pkgDir}" "${arch}"
- fi
- printf '
- for teil in %s; do' \
- "${paket_teile[*]}"
- printf '
- entferneAltePakete "${teil}" "%s"' \
- "${arch}"
- printf '
- done'
-
- printf '
- tar -xf -
- for teil in %s; do' \
- "${paket_teile[*]}"
-
- if [ "${arch}" == "any" ] && [ "${repo}" != 'releng' ]; then
+ entferneAltePakete "${teil}" "%s"' \
+ "${arch}"
printf '
- for lArch in $(ls ..); do
- [ ! -d "../${lArch}" ] && continue
- [ "${lArch}" == "any" ] && continue
- cd "../${lArch}"
-
- entferneAltePakete "${teil}" "any"'
- printf '
- ln -s "../any/${teil}-%s-%s.pkg.tar.xz" "${teil}-%s-%s.pkg.tar.xz"' \
- "${vers}" "${arch}" "${vers}" "${arch}"
- printf '
- if [ -e "%s/any/${teil}-%s-%s.pkg.tar.xz.sig" ]' \
- "${pkgDir}" "${vers}" "${arch}"
- printf '; then
- ln -s "../any/${teil}-%s-%s.pkg.tar.xz.sig" "${teil}-%s-%s.pkg.tar.xz.sig"' \
- "${vers}" "${arch}" "${vers}" "${arch}"
+ done'
+
printf '
- fi
+ tar -xf -
+ for teil in %s; do' \
+ "${paket_teile[*]}"
+
+ if [ "${arch}" == "any" ] && [ "${r}" != 'releng' ]; then
+ printf '
+ for lArch in $(ls ..); do
+ [ ! -d "../${lArch}" ] && continue
+ [ "${lArch}" == "any" ] && continue
+ cd "../${lArch}"
+
+ entferneAltePakete "${teil}" "any"'
+ printf '
+ ln -s "../any/${teil}-%s-%s.pkg.tar.xz" "${teil}-%s-%s.pkg.tar.xz"' \
+ "${vers}" "${arch}" "${vers}" "${arch}"
+ printf '
+ if [ -e "%s/any/${teil}-%s-%s.pkg.tar.xz.sig" ]' \
+ "${pkgDir}" "${vers}" "${arch}"
+ printf '; then
+ ln -s "../any/${teil}-%s-%s.pkg.tar.xz.sig" "${teil}-%s-%s.pkg.tar.xz.sig"' \
+ "${vers}" "${arch}" "${vers}" "${arch}"
+ printf '
+ fi
+ addPaket "${teil}-%s-%s.pkg.tar.xz"' \
+ "${vers}" "${arch}"
+ printf '
+ done'
+ else
+ printf '
addPaket "${teil}-%s-%s.pkg.tar.xz"' \
- "${vers}" "${arch}"
+ "${vers}" "${arch}"
+ fi
printf '
done'
- else
- printf '
- addPaket "${teil}-%s-%s.pkg.tar.xz"' \
- "${vers}" "${arch}"
- fi
- printf '
- done'
+ done
)"
done
fi