Package: dupload
Version: 2.6.4
Severity: normal
Tags: patch

Hello,

this bug is related to the fix of #384703. I'm marking it as normal instead of 
wishlist because it broke my workflow without any good reason and there is no 
good workaround without editing dupload code.

I use dupload to upload to my local archive with the aim to verify changes 
before real upload. What's more, packaging history is kept in subversion 
(team maintenance) where UNRELEASED is regarded as the right distro to use 
until packaging is complete. This mandatory UNRELEASED check breaks my 
workflow as I no longer can use dupload to upload not yet ready packages for 
local testing. Therefore, please make this UNRELEASED check disabable. I have 
no problem with it being enabled by default. Suggested very simple patch is 
attached. It adds 'allow_unreleased' option.
--- /usr/bin/dupload.orig	2008-05-06 23:22:41.000000000 +0300
+++ /usr/bin/dupload	2008-05-06 23:25:01.000000000 +0300
@@ -70,6 +70,7 @@
     %dir, %changes, %log, %announce,    # ...
     %extra,
     $suspicious_but_proceed,
+    $allow_unreleased,
 );
 
 ### Prototypes
@@ -154,6 +155,7 @@
   $dinstall_runs = $nick->{dinstall_runs};
   $nonus = $nick->{nonus};
   $passive = $nick->{passive}; 
+  $allow_unreleased = $nick->{allow_unreleased};
   if ($passive and ($method ne "ftp")) { 
       fatal ("Passive mode is only for FTP ($host)");
   }
@@ -315,7 +317,7 @@
 			/\Wstable/i and $mailto{$mailto}++;
 			/\Wunstable/i and $mailto{$mailtx}++;
 			/\Wexperimental/i and $mailto{$mailtx}++;
-			/\WUNRELEASED/ and fatal "distribution: UNRELEASED";
+			!$allow_unreleased and /\WUNRELEASED/ and fatal "distribution: UNRELEASED";
 			$field = undef;
 			next;
 		};

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to