1 |
commit: 711ddc91052b7664f9f620bfa00992c5a15f48a2 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 27 14:03:23 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 27 14:03:23 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=711ddc91 |
7 |
|
8 |
scripts/rsync-generation/update-rsync-master: touch cat metadata.xml upon package removal |
9 |
|
10 |
scripts/rsync-generation/update-rsync-master.sh | 8 ++++++-- |
11 |
1 file changed, 6 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/scripts/rsync-generation/update-rsync-master.sh b/scripts/rsync-generation/update-rsync-master.sh |
14 |
index 02807d19c9..4eac483b88 100755 |
15 |
--- a/scripts/rsync-generation/update-rsync-master.sh |
16 |
+++ b/scripts/rsync-generation/update-rsync-master.sh |
17 |
@@ -79,10 +79,14 @@ apply_git_mtimes() { |
18 |
files+=( $3 ) |
19 |
;; |
20 |
[D]*) |
21 |
+ set -- ${line} |
22 |
# in case a file is removed, ensure Manifest gets |
23 |
# updated by touching a file which should be there |
24 |
- [[ $2 == */* ]] && \ |
25 |
- files+=( ${2%/*}/metadata.xml ) |
26 |
+ if [[ $2 == */*/* ]] ; then |
27 |
+ [[ -f ${2%/*}/metadata.xml ]] \ |
28 |
+ && files+=( ${2%/*}/metadata.xml ) \ |
29 |
+ || files+=( ${2%/*/*}/metadata.xml ) |
30 |
+ fi |
31 |
;; |
32 |
esac |
33 |
done |