commit: 21d5c5b399b2645f33ff25faaeb1219e3c5c9b52
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 29 05:54:58 2018 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Mar 29 05:54:58 2018 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=21d5c5b3
scripts/rsync-generation/update-rsync-master: deal with nested files (filesdir)
in apply_git_mtimes
scripts/rsync-generation/update-rsync-master.sh | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/scripts/rsync-generation/update-rsync-master.sh
b/scripts/rsync-generation/update-rsync-master.sh
index 4eac483b88..859eb9df55 100755
--- a/scripts/rsync-generation/update-rsync-master.sh
+++ b/scripts/rsync-generation/update-rsync-master.sh
@@ -83,9 +83,14 @@ apply_git_mtimes() {
# in case a file is removed, ensure Manifest
gets
# updated by touching a file which should be
there
if [[ $2 == */*/* ]] ; then
- [[ -f ${2%/*}/metadata.xml ]] \
- && files+=(
${2%/*}/metadata.xml ) \
- || files+=(
${2%/*/*}/metadata.xml )
+ local f=${2}
+ # treat anything in files at the
package level
+ [[ ${f} == */files/* ]] &&
f=${f%/files/*}/foo
+ # if the entire package was removed,
touch the
+ # category level metadata
+ [[ -f ${f%/*}/metadata.xml ]] \
+ && files+=(
${f%/*}/metadata.xml ) \
+ || files+=(
${f%/*/*}/metadata.xml )
fi
;;
esac