Package: dput
Version: 0.9.5
Severity: normal
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Afer a botched upload I tried to dcut it, and the following happened:

0) I was happy about the new -i foo.changes option :)
1) Then I relaized that it doesn't include the .changes file itself,
   which doesn't help for the next upload:

$ dcut -s -i ../build-area/libdevel-findref-perl_1.422-1_i386.changes
[..]
Uploader: <[email protected]>
Commands:
 rm --searchdirs libdevel-findref-perl_1.422-1.dsc
 rm --searchdirs libdevel-findref-perl_1.422.orig.tar.gz
 rm --searchdirs libdevel-findref-perl_1.422-1.diff.gz
 rm --searchdirs libdevel-findref-perl_1.422-1_i386.deb

2) The ftp-queue showed me the .changes and the .orig.tar.gz after the next 
upload,
   so I thought I just rm them with direct commands to dcut:

$ dcut -s rm libdevel-findref-perl_1.422-1_i386.changes , rm 
libdevel-findref-perl_1.422.orig.tar.gz
Traceback (most recent call last):
  File "/usr/bin/dcut", line 384, in <module>
    dcut()
  File "/usr/bin/dcut", line 341, in dcut
    elif options['changes']:
KeyError: 'changes'


I'm a python noob but initialising the changes key in options helps:

$ diff -u /usr/bin/dcut~ /usr/bin/dcut
- --- /usr/bin/dcut~      2009-08-31 17:36:05.000000000 +0200
+++ /usr/bin/dcut       2009-08-31 17:36:05.000000000 +0200
@@ -52,7 +52,7 @@
   # seed some defaults
   options = {'debug':0, 'simulate':0, 'config':None, 'host':None,
              'uploader':None, 'keyid':None, 'passive':0, 'filetocreate':None,
- -             'filetoupload':None}
+             'filetoupload':None, 'changes':None}
   # enable debugging very early
   if ('-d' in sys.argv[1:] or '--debug' in sys.argv[1:]):
     options['debug']=1

3) Now I can go back to my upload :)


Cheers,
gregor

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

Kernel: Linux 2.6.31-rc6.200908221440
Locale: LANG=C, lc_ctype=de...@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages dput depends on:
ii  gnupg                         1.4.9-4    GNU privacy guard - a free PGP rep
ii  python                        2.5.4-2    An interactive high-level object-o

dput recommends no packages.

Versions of packages dput suggests:
ii  lintian                       2.2.14     Debian package checker
pn  mini-dinstall                 <none>     (no description available)
ii  openssh-client                1:5.1p1-7  secure shell client, an rlogin/rsh
ii  rsync                         3.0.6-1    fast remote file copy program (lik
pn  yaclc                         <none>     (no description available)

- -- debconf information:
  dput/config-file-format:

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkqb75cACgkQOzKYnQDzz+RwmgCgj5mDaJYIGq307N5V2r43QFGM
GWUAnjGWmt7lCIuJa6I2rU9aoJrk1S2C
=IhEH
-----END PGP SIGNATURE-----



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

Reply via email to