aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates/submit_package.pl
blob: daeec96237ca5c67dd73a7f93c5cb3620f2a0379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl
use strict;
use warnings;

my $svn_server = 'svn.<%= domain %>';
my $packagersgroup="<%= packagers_group %>";

my $login = getpwuid($<);
my (undef, undef, undef, $members) = getgrnam $packagersgroup;
if (not $members =~ /\b$login\b/) {
	print "You are not in $packagersgroup group\n";
	exit 1;
}

# for bug 914 
# https://bugs.mageia.org/show_bug.cgi?id=914
map { $_ =~ s|^svn\+ssh://$svn_server/|svn://$svn_server/| } @ARGV; 
exec "/usr/share/mgarepo/create-srpm", @ARGV;