[pkg-perl-tools] 01/01: dpt-salsa: createrepo(): share repo with debian group

gregor herrmann gregoa at debian.org
Sun Jan 28 02:04:03 UTC 2018


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository pkg-perl-tools.

commit 6d7ed40746f2d619cc37fb9034a5e528af088908
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Jan 28 03:02:33 2018 +0100

    dpt-salsa: createrepo(): share repo with debian group
    
    Gbp-Dch: Ignore
---
 scripts/salsa | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/scripts/salsa b/scripts/salsa
index 1fd217c..45231e1 100755
--- a/scripts/salsa
+++ b/scripts/salsa
@@ -25,6 +25,8 @@ my %config = (
     perl_team_modules_packages_id   => 2666,
     perl_team_modules_attic_path    => 'perl-team/modules/attic',
     perl_team_modules_attic_id      => 2667,
+    debian_path                     => 'debian',
+    debian_id                       => 2,
 );
 
 ## update from environment / config file
@@ -231,6 +233,14 @@ sub createrepo {
 
         }
     );
+
+    # allow access to debian group
+    $api->share_project_with_group(
+        $repoid,
+        {   group_id     => $config{'debian_id'},
+            group_access => $levels_name{'developer'},
+        }
+    );
 }
 
 # helper functions
@@ -289,7 +299,7 @@ B<dpt-salsa> for the first time.
 =head3 I<createrepo> I<repositoryname>
 
 Creates a new repository in the I<modules> subgroup and sets up the default
-webhooks and services.
+webhooks, services, and permissions.
 
 Parameters:
 
@@ -437,6 +447,14 @@ optional, default: perl-team/modules/attic
 
 optional, default: 2667
 
+=item DPT_SALSA_DEBIAN_PATH
+
+optional, default: debian
+
+=item DPT_SALSA_DEBIAN_ID
+
+optional, default: 2
+
 =back
 
 Cf. L<dpt-config(5)>.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git



More information about the Pkg-perl-cvs-commits mailing list