aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-09-15 19:54:04 +0100
committerColin Guthrie <colin@mageia.org>2014-09-19 09:58:25 +0100
commit08dde22786ffd1018377363ae42b665c4857160d (patch)
tree6af22967dd016566bad49ee5fd82ce66e9db2087 /modules/buildsystem/templates
parent9cf2957242c572a332f732d359ea55c66f3964be (diff)
downloadpuppet-08dde22786ffd1018377363ae42b665c4857160d.tar
puppet-08dde22786ffd1018377363ae42b665c4857160d.tar.gz
puppet-08dde22786ffd1018377363ae42b665c4857160d.tar.bz2
puppet-08dde22786ffd1018377363ae42b665c4857160d.tar.xz
puppet-08dde22786ffd1018377363ae42b665c4857160d.zip
buildsystem: maintdb allow *-team maintainers.
*-team maintainers behave just like 'nobody' but can be used to indicate packages that actually are maintained, but are handled by a team rather than an individual. This doesn't integrate *-team anywhere else in the stack it just allows the maintainers to be set. Anything that assumes a maintainer in the maintdb is a user (modulo 'nobody') would need to be updated to handle this change.
Diffstat (limited to 'modules/buildsystem/templates')
-rwxr-xr-xmodules/buildsystem/templates/maintdb/maintdb.bin4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/buildsystem/templates/maintdb/maintdb.bin b/modules/buildsystem/templates/maintdb/maintdb.bin
index 6c40046c..903ee009 100755
--- a/modules/buildsystem/templates/maintdb/maintdb.bin
+++ b/modules/buildsystem/templates/maintdb/maintdb.bin
@@ -37,7 +37,7 @@ function maintset()
exit 1
fi
curmaint=$(cat "$maintfile")
- if [ "$newmaint" = "nobody" ]; then
+ if [ "$newmaint" = "nobody" ] || [[ "$newmaint" = *-team ]]; then
if [ "$curmaint" = "$user" ]; then
echo "$newmaint" > "$maintfile"
exit 0
@@ -46,7 +46,7 @@ function maintset()
exit 1
fi
elif [ "$newmaint" = "$user" ]; then
- if [ "$curmaint" = "nobody" ]; then
+ if [ "$curmaint" = "nobody" ] || [[ "$curmaint" = *-team ]]; then
echo "$newmaint" > "$maintfile"
exit 0
else