/[qa]/trunk/pts/bin/add-tags.pl
ViewVC logotype

Contents of /trunk/pts/bin/add-tags.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2738 - (show annotations) (download)
Mon Apr 16 16:41:41 2012 UTC (13 months ago) by geissert
File MIME type: text/plain
File size: 757 byte(s)
/org -> /srv
1 #!/usr/bin/perl -w
2
3 # Copyright 2006 Raphaƫl Hertzog <hertzog@debian.org>
4 # Available under the terms of the General Public License version 2
5 # or (at your option) any later version
6
7 use lib '/srv/packages.qa.debian.org/perl';
8
9 use DB_File;
10
11 use strict;
12 use vars qw(%db_tags_content);
13
14 require "common.pl";
15
16 # Comment those two lines for the few times where this script may be needed
17 print "You shouldn't call this script.\n";
18 exit 1;
19
20 # Add buildd keyword to people with default keyword
21 open_db_write();
22 my $i = 0;
23 foreach (sort keys %db_tags_content) {
24 if ($db_tags_content{$_} !~ m/buildd/) {
25 if ($db_tags_content{$_} =~ m/default/) {
26 $db_tags_content{$_} =~ s/default/default,buildd/;
27 $i++;
28 }
29 }
30 }
31 print "$i entries updated.\n";
32 close_db();

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5