Bug#481415: dcmd: options to select files to process/pass on

2008-11-15 Thread martin f krafft
also sprach Adam D. Barratt [EMAIL PROTECTED] [2008.11.14.1251 +0100]:
 Over the nearly six month period in between the two hacks on dcmd,
 I'd entirely forgotten your original request to raise an error if
 the files were not found - is that something you're still
 interested in? If so, I'll add it to the script (although most
 likely as an option as I've been finding it quite useful during
 testing to be able to say select whatever subset of these files
 is listed).

Yeah, an option would be fine. It's just that if I ask the tool to
give me orig and diff and it returns successfully, I'd like to be
able to assume that the files are present before the command dcmd
invokes is run. Also, if I need diff and orig to be passed to
a command, maybe because it expects those two (ordering might play
a role?) then it would not be acceptable if dcmd simply left out one
of them if the file wasn't present.

-- 
 .''`.   martin f. krafft [EMAIL PROTECTED]
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Bug#481415: dcmd: options to select files to process/pass on

2008-11-14 Thread Adam D. Barratt
On Fri, 2008-05-16 at 16:02 +0100, Adam D. Barratt wrote:
 I've got an updated script that makes dcmd --diff --orig scp foo.changes 
 work, but it only errors if the expansion produced no files /of any type/; 
 unfortunately if there is a diff but not an orig, it doesn't currently 
 complain. I'm still thinking as to whether there's an elegant way of 
 checking each type individually that doesn't involve silly amounts of 
 repitition in the code (particularly given that dcmd is shell).

Hmmm, I hadn't realised it had been so long since I originally looked at
this bug.

My original attempt at fixing it largely got thrown away as it involved
doing horrible amounts of regex processing. I've now replaced it with a
nicer version which also implements --no-diff and friends.

Over the nearly six month period in between the two hacks on dcmd, I'd
entirely forgotten your original request to raise an error if the files
were not found - is that something you're still interested in? If so,
I'll add it to the script (although most likely as an option as I've
been finding it quite useful during testing to be able to say select
whatever subset of these files is listed).

Regards,

Adam



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#481415: dcmd: options to select files to process/pass on

2008-05-16 Thread martin f krafft
also sprach Adam D. Barratt [EMAIL PROTECTED] [2008.05.16.0052 +0100]:
 Were you envisaging the options being mutually exclusive, or combinable?
 (e.g. dcmd --diff --orig scp foo.changes)

Combineable.

-- 
 .''`.   martin f. krafft [EMAIL PROTECTED]
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
 
man sagt nicht 'nichts!', man sagt dafür 'jenseits' oder 'gott'.
 - friedrich nietzsche


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Bug#481415: dcmd: options to select files to process/pass on

2008-05-16 Thread Adam D. Barratt

martin f krafft wrote, Friday, May 16, 2008 7:59 AM
also sprach Adam D. Barratt [EMAIL PROTECTED] [2008.05.16.0052 
+0100]:

Were you envisaging the options being mutually exclusive, or combinable?
(e.g. dcmd --diff --orig scp foo.changes)


Combineable.


I had a feeling that might be your answer, and yet hoped it wouldn't be. ;-)

I've got an updated script that makes dcmd --diff --orig scp foo.changes 
work, but it only errors if the expansion produced no files /of any type/; 
unfortunately if there is a diff but not an orig, it doesn't currently 
complain. I'm still thinking as to whether there's an elegant way of 
checking each type individually that doesn't involve silly amounts of 
repitition in the code (particularly given that dcmd is shell).


Adam 





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#481415: dcmd: options to select files to process/pass on

2008-05-15 Thread martin f krafft
Package: devscripts
Version: 2.10.27
Severity: wishlist
File: /usr/bin/dcmd

Options like --dsc, --orig, --diff, --changes and --schanges would
be nice to be able to select if only a subset of files should be
passed on. Should those files not be listed in the file passed, then
an error is given.

-- Package-specific info:

--- /etc/devscripts.conf ---

--- ~/.devscripts ---
DEBUILD_LINTIAN=yes
DEBUILD_LINTIAN_OPTS=-i
DEBUILD_DPKG_BUILDPACKAGE_OPTS=-i -rfakeroot -uc -us
DEBSIGN_KEYID=220bc883330c4a75
DEBDIFF_SHOW_DIFFSTAT=yes
DEBCHANGE_MULTIMAINT_MERGE=yes
DEBCHANGE_MAINTTRAILER=yes

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1+scoflowctrl.1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev  1.14.19package building tools for Debian
ii  libc6 2.7-11 GNU C Library: Shared libraries
ii  perl  5.10.0-10  Larry Wall's Practical Extraction 

Versions of packages devscripts recommends:
ii  at 3.1.10.1  Delayed job execution and batch pr
ii  bsd-mailx [mailx]  8.1.2-0.20071201cvs-3 A simple mail user agent
ii  bzr1.5~rc1-1 easy to use distributed version co
ii  curl   7.18.1-1  Get a file from an HTTP, HTTPS or 
ii  cvs1:1.12.13-10  Concurrent Versions System
ii  dctrl-tools2.12  Command-line tools to process Debi
ii  debian-keyring 2007.12.04GnuPG (and obsolete PGP) keys of D
ii  debian-maintainers 1.33  GPG keys of Debian maintainers
ii  dput   0.9.2.32  Debian package upload tool
ii  epiphany-webkit [w 2.22.1.1-1Intuitive GNOME web browser - webk
pn  equivs none(no description available)
ii  fakeroot   1.9.5 Gives a fake root environment
ii  git-core   1:1.5.5.1-1   fast, scalable, distributed revisi
ii  gnupg  1.4.6-2.2 GNU privacy guard - a free PGP rep
ii  iceweasel [www-bro 2.0.0.14-2lightweight web browser based on M
pn  libauthen-sasl-per none(no description available)
ii  libcrypt-ssleay-pe 0.57-1+b1 Support for https protocol in LWP
ii  libparse-debcontro 2.005-2   Easy OO parsing of Debian control-
ii  libsoap-lite-perl  0.71-2Client and server side SOAP implem
pn  libterm-size-perl  none(no description available)
ii  libtimedate-perl   1.1600-9  Time and date functions for Perl
ii  liburi-perl1.35.dfsg.1-1 Manipulates and accesses URI strin
ii  libwww-perl5.812-1   WWW client/server library for Perl
ii  libyaml-syck-perl  1.01-1+b1 Fast, lightweight YAML loader and 
ii  links [www-browser 2.1pre36-1Web browser running in text mode
ii  links2 [www-browse 2.1pre36-1Web browser running in both graphi
ii  lintian1.23.48   Debian package checker
ii  lsb-release3.2-12Linux Standard Base version report
ii  mailx  1:20071201-3  Transitional package for mailx ren
ii  man-db 2.5.2-1   on-line manual pager
ii  mercurial  1.0-4 Scalable distributed version contr
ii  openssh-client [ss 1:4.7p1-9 secure shell client, an rlogin/rsh
ii  opera [www-browser 9.50-20071024.6   The Opera Web Browser
ii  patch  2.5.9-5   Apply a diff file to an original
ii  patchutils 0.2.31-4  Utilities to work with patches
ii  strace 4.5.15-1.2A system call tracer
ii  subversion 1.4.6dfsg1-4  Advanced version control system
ii  unzip  5.52-11   De-archiver for .zip files
ii  w3m [www-browser]  0.5.1-5.1+b1  WWW browsable pager with excellent
ii  wdiff  0.5-17Compares two files word by word
ii  wget   1.11.2-1  retrieves files from the web

-- no debconf information


-- 
 .''`.   martin f. krafft [EMAIL PROTECTED]
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Bug#481415: dcmd: options to select files to process/pass on

2008-05-15 Thread Adam D. Barratt
Hi,

On Thu, 2008-05-15 at 22:02 +0100, martin f krafft wrote:
 Options like --dsc, --orig, --diff, --changes and --schanges would
 be nice to be able to select if only a subset of files should be
 passed on. Should those files not be listed in the file passed, then
 an error is given.

Were you envisaging the options being mutually exclusive, or combinable?
(e.g. dcmd --diff --orig scp foo.changes)

Adam



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]