summaryrefslogtreecommitdiff
path: root/app-alternatives
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-06 15:10:46 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-06 15:10:46 +0000
commitee8ad1509f726e8fa598472117e5bbffd241ebab (patch)
tree4ac9a10ae4694145a7287533143f85af923c1954 /app-alternatives
parent1fe7aef6facf013a94eac853717f4da4d5d3c5b3 (diff)
gentoo auto-resync : 06:12:2022 - 15:10:45
Diffstat (limited to 'app-alternatives')
-rw-r--r--app-alternatives/Manifest.gzbin1676 -> 1680 bytes
-rw-r--r--app-alternatives/awk/Manifest2
-rw-r--r--app-alternatives/awk/awk-3.ebuild (renamed from app-alternatives/awk/awk-2.ebuild)21
3 files changed, 22 insertions, 1 deletions
diff --git a/app-alternatives/Manifest.gz b/app-alternatives/Manifest.gz
index ed0cde5ccc6f..8f987715b105 100644
--- a/app-alternatives/Manifest.gz
+++ b/app-alternatives/Manifest.gz
Binary files differ
diff --git a/app-alternatives/awk/Manifest b/app-alternatives/awk/Manifest
index 5ecba01dea54..4af029902a19 100644
--- a/app-alternatives/awk/Manifest
+++ b/app-alternatives/awk/Manifest
@@ -1,3 +1,3 @@
EBUILD awk-1.ebuild 554 BLAKE2B 29fc3ad3018b3ce17a24c250e22789105c8a564fdda0c2185401fe999ccb2d33eae2afacef01042e3b58e968b906452e9fb623f0a804c0a0954042297146abf9 SHA512 53db324987a3b7dc3c49f4d5d2060b8d065aa5798be2084d75c5eea89344205118ca301ca21ecc438d45e28ea1eb60357d44c2fe0b52ae1602636bf85535d1d0
-EBUILD awk-2.ebuild 1373 BLAKE2B a65daeca559e47330535a17923c6b21e083d671292d99391365895c74e408aeb6d03e2135f3e5d9b6bf50dda171ee5535597b6724dd8699b126d58e79ce2e669 SHA512 1cc668225cb6bfee490ab8564d777a668899937726a892e86b484b38d46a10e2614cb1501128973640c41f04118ba48d09651efd43a9c66b11809abcc631621e
+EBUILD awk-3.ebuild 1895 BLAKE2B 03a4a58d22e8e59acebd7811d2e9e8dcd6fc9c2c2601cf85da39f8f863de333164af838868eadf5ed2cd6d30aefbc2450bf917e4737d21297231b01550ec47a5 SHA512 c5b81fe0863e6fadaaf7ba0687834fabd92e92ddb6f7bf33efe4118ed328ef8b694d3471ece7656dbedb97fc25091cd68c4456218093decacdcfc2f5646d81b3
MISC metadata.xml 829 BLAKE2B bf4375b33e702c61a3f8553e1b63110acab32b68d4ac2d905b6dd12a2204484bc5c2f3a34b2ec127a6c60aac8c105949dbc6eb5ade3a1c8c959afdabdd3658a1 SHA512 32252970d3b12c7a5b9fc7c7ffae821908b9bd4101372e699c70e64572fd7563121427ed5971462417d8c2e6155e47f567ac3bb057d457d58648c5b4d2458974
diff --git a/app-alternatives/awk/awk-2.ebuild b/app-alternatives/awk/awk-3.ebuild
index c20aa0953478..d722129ee333 100644
--- a/app-alternatives/awk/awk-2.ebuild
+++ b/app-alternatives/awk/awk-3.ebuild
@@ -44,6 +44,27 @@ src_install() {
fi
}
+pkg_preinst() {
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ # if we are upgrading from a new enough version, leftover manpage
+ # symlink cleanup was done already
+ if ver_test "${v}" -ge 3; then
+ return
+ fi
+ done
+
+ # otherwise, remove leftover files/symlinks created by eselect-awk (sic!)
+ shopt -s nullglob
+ local files=( "${EROOT}"/usr/share/man/man1/awk.1* )
+ shopt -u nullglob
+
+ if [[ ${files[@]} ]]; then
+ einfo "Cleaning up leftover manpage symlinks from eselect-awk ..."
+ rm -v "${files[@]}" || die
+ fi
+}
+
pkg_postrm() {
# make sure we don't leave the user without the symlinks, since
# they've not been owned by any other package