[Debtags-commits] [svn] r2088 - in debtags/1.6.0: . tools

Enrico Zini enrico at alioth.debian.org
Sat Nov 18 13:58:58 CET 2006


Author: enrico
Date: Sat Nov 18 13:58:58 2006
New Revision: 2088

Modified:
   debtags/1.6.0/   (props changed)
   debtags/1.6.0/tools/debtags-updatecontrol
Log:
 r3675 at viaza:  enrico | 2006-11-18 13:58:23 +0100
 debtags-updatecontrol: detect when there are no tags on Alioth, and suggest people to add some, giving the tag editing webapp url


Modified: debtags/1.6.0/tools/debtags-updatecontrol
==============================================================================
--- debtags/1.6.0/tools/debtags-updatecontrol	(original)
+++ debtags/1.6.0/tools/debtags-updatecontrol	Sat Nov 18 13:58:58 2006
@@ -191,6 +191,12 @@
 		my $newtags = `$WGET -q -O- http://debtags.alioth.debian.org/cgi-bin/taglist/$package`;
 		die "wget failed downloading the tag list for $package" if $? != 0;
 		my @newtags = sort split("\n", $newtags);
+		if (@origtags == 0 && @newtags == 0)
+		{
+			print "There are no tags for $package on the central database yet.\n";
+			print "Please add some at http://debtags.alioth.debian.org/edit.html?pkg=$package\n";
+			print "and try again.\n";
+		}
 		my @diff = tagdiff(@origtags, @newtags);
 		my @approved;
 		my @fixes;



More information about the Debtags-commits mailing list