From 0e2ee11f588d2d067455d37d065ba58c91f03dc3 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Thu, 17 Dec 2015 17:32:13 +0000 Subject: [PATCH] Conditionalize that so I can debug in stg. --- roles/distgit/templates/genacls.pkgdb | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/roles/distgit/templates/genacls.pkgdb b/roles/distgit/templates/genacls.pkgdb index 471a33a622..b6917db328 100644 --- a/roles/distgit/templates/genacls.pkgdb +++ b/roles/distgit/templates/genacls.pkgdb @@ -131,15 +131,17 @@ if __name__ == '__main__': (pkg, ACTIVE[branch]) ) -## While we debug this issue in stg -# print '' -# print 'repo %s%s' % (key, pkg) -# print '\n'.join(buffer) -# for reserved in RESERVED: -# print ' - %s = @all' % reserved -# print ' RWC refs/tags/ = %s' % ' '.join(writers) -# if masters: -# print ' RWC = %s' % ' '.join(masters) +{% if env == 'staging' %} +# While we debug this issue in stg + print '' + print 'repo %s%s' % (key, pkg) + print '\n'.join(buffer) + for reserved in RESERVED: + print ' - %s = @all' % reserved + print ' RWC refs/tags/ = %s' % ' '.join(writers) + if masters: + print ' RWC = %s' % ' '.join(masters) +{% endif %} # Bring backward compatibility while we keep the symlinks in place # from the old to the new locations.