Uploaded dupload 2.2 (source all) to master
The main new feature are the hooks. I was a bit tired by requests to add
such and such feature (running lintian before, creating a '.release' after) so
I added a general mechanism to run any command before or after an upload.
In the future, I hope to enhance the hook system to run Perl code as well as
shell commands and to rewrite several dupload features, such as announcements,
as hooks.
Here is a part of the relevant part of the doc:
HOOKS
Hooks are a powerful way to add actions which will be run before
or after a dupload (like the preinst and postinst script of
dpkg).
You have two sort of hooks: pre-upload and post-upload. Both are
simple shell commands (executed by 'sh -c' so you can use any
shell tricks). Pre-uploads are always run (even in dry mode) and
stop dupload if they fail (failure being mesured by the hook
exit status). Post-uploads are only run when you are not in dry
mode and only if the uploading succeeded.
Both sorts of hooks are run for a given category: changes,
sourcepackage, package, file or deb.
changes
This hook is run once per "changes" file (given as an
argument to dupload) with the filename as its parameter.
sourcepackage
This hook is run once per "changes" file with the source
package name and its version as its two parameters.
package
This hook is run once per binary package (a "deb" file) with
the package name and its version as its two parameters.
file
This hook is run once per uploaded file, with the file name
as its parameter.
deb This hook is run once per binary package (a "deb" file) with the
filename as its parameter.
...
Examples
This one runs lintian before uploading. It is global and
guarantee that you will always upload lintian-free packages
(thanks to lintian return status).
$preupload{'deb'} = 'lintian -v -i %1';
This one just display the name and versions of successfully
uploaded packages.
$postupload{'package'} = 'echo PACKAGE %1 %2 uploaded';
Unlike the two others, this one is specific to one host, master.
$cfg{master}{preupload}{'changes'} = "echo Uploading %1 to master";
-----BEGIN PGP SIGNED MESSAGE-----
Format: 1.5
Date: Thu, 3 Jun 1999 11:26:03 +0200
Source: dupload
Binary: dupload
Architecture: source all
Version: 2.2
Distribution: unstable
Urgency: low
Maintainer: Stephane Bortzmeyer <bortzmeyer@debian.org>
Description:
dupload - Utility to upload Debian packages.
Changes:
dupload (2.2) unstable; urgency=low
.
* A completely new system to run pre and post-upload scripts: hooks.
Now, you can run any shell command before uploading (uploading will
be cancelled if they fail) and after successful uploading.
See dupload.conf(5). Closes #34883 and, I hope, almost all the future
wishlists "Can you add such and such in dupload" :-)
* Small improvment to the automatic changelog detection code. Closes
#39072
* Several cleanings of the source code and dependencies, thanks to
Julian Gilbey <J.D.Gilbey@qmw.ac.uk>
* New upload queue samosa.debian.org. Closes #38838
Files:
3c2507966c5f9fd2eb8315d5a0963e6e 556 devel optional dupload_2.2.dsc
d777ea337afa5f6098b0e26461a870eb 20756 devel optional dupload_2.2.tar.gz
011a104ac7ea489d7e0621bbefd77bab 24582 devel optional dupload_2.2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQCVAwUBN2Zf/Ii1K+EbIXuVAQFWzQP+PyRe8mUpHzY6lKaNvHX/hF/8NOAVmCYO
Xfqq8Qk8G1DhHqG4hg5CP2Kr21ynkiqINE0rXayJDCf+PJ6JNXeI1U9HHxFCT8CQ
I9gQFd0DSx53S2Awln25v2EB+A8RgASxXlj3+cEG+v+GwZvMwWyPMgA0TDIIcxdE
6nvxBlk8mAM=
=wkyb
-----END PGP SIGNATURE-----
Reply to: