Your message dated Thu, 24 Aug 2017 18:49:19 +0000
with message-id <[email protected]>
and subject line Bug#259981: fixed in dupload 2.9.0
has caused the Debian Bug report #259981,
regarding 'cp' method for local buildds
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
259981: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=259981
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dupload
Severity: wishlist
Tags: patch

Hi,

It's usefull to have a local 'cp' method in dupload, specially in
conjunction with cvs-autoreleasedeb or svn-autoreleasedeb, so the user
can release automatically to a local repository easier...

Thanks in advance,

daniel
--- /usr/bin/dupload.ori	2006-08-14 16:25:40.795862312 +0100
+++ /usr/bin/dupload	2006-08-14 16:30:02.718044088 +0100
@@ -464,6 +464,8 @@
 	p "Uploading (scp) to $host ($fqdn)\n";
 } elsif ($method eq "rsync") {
 	p "Uploading (rsync) to $host ($fqdn)\n";
+} elsif ($method eq "cp") {
+        p "Copying (cp) to $incoming\n";
 } else {
 	fatal("Unknown upload method\n");
 }
@@ -548,6 +550,24 @@
 			}
 			$t = 1;
 			$batchmode = 1;
+		} elsif ($method eq "cp") {
+                        $mode = (stat($file))[2];
+			unless ($dry) {
+				system("cp -p $options $file $incoming");
+				fatal("cp $file failed\n") if $?;
+				$t = time() - $t;
+                                # Small optimization
+                                if ($mode != 33188) { # rw-r--r-- aka 0644
+				    system("chmod 0644 $incoming/$file");
+				    fatal("chmod 0644 failed\n") if $?;
+                                }
+			} else {
+				p "\n+ cp -p $options $file $incoming";
+                                if ($mode != 33188) { # rw-r--r-- aka 0644
+                                     p "\n+ chmod 0644 $incoming/$file";
+                                }
+				$t = 1;
+			}
 		}
 
 		if ($queuedir) {
@@ -569,6 +589,13 @@
 				} else {
 					p "\n+ ssh -x -l $login $fqdn \"mv $incoming$file $queuedir$file\"";
 				}
+			} elsif ($method eq "cp") {
+				unless ($dry) {
+					system("mv $incoming$file $queuedir$file");
+					fatal("mv failed\n") if $?;
+				} else {
+					p "\n+ mv $incoming$file $queuedir$file";
+				}
 			}
 		}
 

--- End Message ---
--- Begin Message ---
Source: dupload
Source-Version: 2.9.0

We believe that the bug you reported is fixed in the latest version of
dupload, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guillem Jover <[email protected]> (supplier of updated dupload package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 23 Aug 2017 19:21:33 +0200
Source: dupload
Binary: dupload
Architecture: source
Version: 2.9.0
Distribution: unstable
Urgency: medium
Maintainer: Dpkg Developers <[email protected]>
Changed-By: Guillem Jover <[email protected]>
Description:
 dupload    - Debian package upload tool
Closes: 259981
Changes:
 dupload (2.9.0) unstable; urgency=medium
 .
   * Update the TODO list.
   * Add Vcs-Browser and Vcs-Git fields to debian/control.
   * Bump Standards-Version to 4.1.0 (no changes needed).
   * Rename man pages to from Npod to N.pod extensions.
   * Remove trailing whitespace.
   * Remove PGP support, we always have GnuPG now.
   * Do not consider the default_host as the only host to dump on --print.
   * Add a new default hook to ask whether the user has been authorized to
     do Debian security uploads, and enable all security queues by default.
   * Add support for specifying a filename argument to --configfile, and
     deprecate using it without the argument due to being a security risk.
   * Add a basic unit test suite.
   * Fix fatal error for pre-upload package hook to include the actual hook.
   * Use $changes instead of $_ for the sourcepackage postupload hook, so that
     we compute the hook arguments properly.
   * Do not try to operate on the job log filehandle if we cannot open it.
   * Add new "copy" upload method. Closes: #259981
   * Do not expect incoming nor queuedir options to end in a slash. This was
     affecting the ftp and scp methods.
   * Always print a newline before printing a fatal error to make sure we do
     not start on a partially written line.
   * Insert a colon after the program name in errors and warnings.
   * Only set the batch mode command variables when in that mode.
   * Add Ubuntu host to dupload.conf.
     Thanks to Oliver Grawert (ogra) <[email protected]>.
   * Switch to debhelper compatibility level 10.
   * Perl code cleanup:
     - Do not access the @_ array as @_[0].
     - Declare Getopt::Long option variables.
     - Declare dupload.conf configuration variables.
     - Use strict and warnings in dupload and dupload.conf.
     - Remove ancient perl version requirement.
     - Replace hard tabs with 4 spaces.
     - Switch a deep conditional into an early return.
     - Remove unused variables.
     - Fold batch method statistics conditional into subsequent conditional.
     - Fix indentation and spacing. Split each statement into its own line.
     - Use IO::Handle autoflush instead of single argument select.
     - Do not use parenthesis with built-ins.
     - Use parenthesis for non-built-in functions.
     - Use block form for grep.
     - Declare every global variable on its own my.
     - Improve code comments.
     - Remove unnecessary parenthesis in conditionals.
     - Switch trivial one-liner conditionals to postfix notation.
     - Switch comma separated statements into prefix conditionals.
     - Refactor job logging into a new log_job() function.
     - Use scalars for filehandles instead of barewords.
     - Use braced filehandles with print.
     - Use three argument open form.
     - Use lexical loop iterators.
     - Rework hook execution to not require an eval.
     - Do not use stringy split.
     - Do not interpolate literal strings.
     - Do not use undefined $queuedir variable.
     - Do not use undefined $debian when checking announce filenames.
     - Use uppercase names for HERE-doc terminators.
     - Quote HERE-doc terminators.
     - Use glob function instead of the <> operator.
     - Use negative indices instead of $#var.
     - Use {} instead of # as regex delimiter.
     - Use List::Util any function instead of grep in boolean context.
     - Stop using the English module.
     - Do not mix boolean operators with different precedence.
     - Use octals instead of decimal values for file modes.
     - Move declaration of @f to its initialization.
     - Do not use «and do» or «or do» constructs.
     - Do not use «and» or «or» for non-control-flow actions.
     - Unify fatal error handling with other surrounding flow control logic.
     - Avoid explicit usage of the topic variable.
     - Simplify and cleanup fatal error reporting.
     - Use non-capturing groups in regexes.
     - Refactor pre and post upload hooks into two new functions.
     - Check open return value for redirection of announcement to stdout.
     - Use fatal() instead of die.
     - Do not use contracted forms in output messages nor documentation.
     - Chain method conditionals into if/elsif blocks.
     - Rename $server variable to $ftp.
Checksums-Sha1:
 f7f05ac8bbf0c77507d4fd91f991932fa134c685 1609 dupload_2.9.0.dsc
 e916b35d59c03fa0832f6177823b41027d32f78c 29192 dupload_2.9.0.tar.xz
 bcd3e17d1523d6f12495527679f1aaaaf8e6138e 5773 dupload_2.9.0_amd64.buildinfo
Checksums-Sha256:
 ae55cf70afafdc399cee3d2a1bc4434737691ce87289b0f28f8ae9c24662e44b 1609 
dupload_2.9.0.dsc
 02218a73944e0e7b79b651cc23f9e745cc8ffcd3494add5a0924bf08b6094b0b 29192 
dupload_2.9.0.tar.xz
 31fac0798fbcaceb1ca75faa475523637b692a982ddcc35cfa5285310a927f0d 5773 
dupload_2.9.0_amd64.buildinfo
Files:
 095a373b1e12a291314e05435a3f43d1 1609 devel optional dupload_2.9.0.dsc
 e523570460e809c287bb376677fe6fb2 29192 devel optional dupload_2.9.0.tar.xz
 61e11670272b43b918153f5403d0bb6a 5773 devel optional 
dupload_2.9.0_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETz509DYFDBD1aWV0uXK/PqSuV6MFAlmfHNcACgkQuXK/PqSu
V6N+Eg//QRnORfeCTCw6GKGwWNWlBA8CbwxlWm57cmRsQyLwkbwAce1imV2GcGaz
I20/NCNhiewc79GdOBDXItONQBtHGWeUVrCm394Hcuu7ZQtafstihBbqM+rg+En/
TYxkrgrvBanrpi4Ss6phkbXc05jShO7WjAe8ODKOLnkCPbOWbaiBHhAPZmrWueNt
4uPs+TdOj6ivRroINYCNe6Nc/xj/1BHEwIifk88yPx2FJKc62YyB4LTkpuHufs0J
UVPxuL98bah/8G5fSLxVrEzAwpTMLRJzLAdZ8cDK1EBX1pXqlqwjhqi2JcVa6Tnt
rNEg8XhsppNdJxJoC1yaX3URpjmvT6ZTux8HdCXgCRTZXpi2ncRIH6wtSStC6OFJ
iyrA9WhhIBYXQMrFi/xxeM4plpYrqPJoyVesDakBkEFC9VrqM+54NgDRo19gcr0S
NQf/7vLxR6Tl8n0wM2MpzSsqIGYgHyCbaKlqCnJmgAp/BHpll0PrASApiwGmLnJe
lx3LuaMc9lmm389Om5w7BZy9NOiX9/CsodpkOu82CjSZ0UeWPWBjMZyR0hqKUf97
JPkxMABYMPrwGdsppuC7Z/NStB+wbtkMorehoAqsn8dhD0XTEbo7e+h+Fx73Urmx
8v0LqOSFSLk03z91bdT0MNzQaI7hW1+V91lbtSm2vwczcZBzNGA=
=lHcl
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to