[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [DDTS] Améliorations de ddtc?



Quoting Nicolas Bertolissio (nico.bertol@free.fr):
> Le jeudi 19 septembre 2002, Christian Perrier écrit :
> > d'errorlevels à ddtc. Donc, à l'occasion, Nico si tu peux...:-)
> oui, mais l'occasion risque de ne pas se présenter avant un certain
> temps, voire un temps certain, mon activité syndicale absorbe la
> totalité de mon temps, et même plus...

Pour l'instant, j'ai mis des exit(1) juste après l'émission des
warnings, ça devrait en gros suffire.

Diff de goret attaché..:-)

-- 

*** /usr/bin/ddtc	2002-04-14 22:23:00.000000000 +0200
--- /home/bubulle/bin/ddtc	2002-09-21 08:56:23.000000000 +0200
***************
*** 738,749 ****
--- 738,751 ----
  		warning "collision detected, $package.$Fix_e exists,",
  			"try to rename it into $package.$Bug_e.\n",
  			"$package skipped";
+ 		exit (1);
  		return;
  	}
  	if (-e "$Tr_dir/$package.$Tr_e") {
  		warning "collision detected, $package.$Tr_e exists,",
  			"try to remove it and rename $package.$Fix_e.$Old_e into $package.$Bug_e.\n",
  			"$package skipped";
+ 		exit (1);
  		return;
  	}
  	unless ($package =~ /grisu-td-update\@auric\.debian\.org/) {
***************
*** 752,763 ****
--- 754,767 ----
  			warning "collision detected, $package.$Ok_e exists,",
  				"and has a DIFFERENT translation,",
  				"$package skipped";
+ 			exit (1);
  			return;
  		} elsif	(   (-e "$Tr_dir/$package.$Sent_e")
  			 && (get_translation("$Tr_dir/$package.$Sent_e") ne uncomment($translation, "## "))) {
  			warning "collision detected, $package.$Sent_e exists,",
  				"and has a DIFFERENT translation,",
  				"$package skipped";
+ 			exit (1);
  			return;
  		}
  	}

Reply to: