Your message dated Sun, 01 Mar 2009 16:47:49 +0000
with message-id <[email protected]>
and subject line Bug#517672: fixed in zsh 4.3.9-3
has caused the Debian Bug report #517672,
regarding Complete custom/unknown Django management commands
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.)


-- 
517672: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517672
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: zsh
Version: 4.3.9-1
Tags: patch
Severity: wishlist

The current completion script for Django's manage.py files hardcodes the
possible subcommands. However, custom management commands are widespread, so
it would be nice to at least allow completion.

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected]
       `-
diff -urNd zsh-4.3.9.orig/Completion/Unix/Command/_django 
zsh-4.3.9/Completion/Unix/Command/_django
--- zsh-4.3.9.orig/Completion/Unix/Command/_django      2009-03-01 
11:30:13.000000000 +0000
+++ zsh-4.3.9/Completion/Unix/Command/_django   2009-03-01 11:30:44.000000000 
+0000
@@ -57,6 +57,15 @@
       "testserver:run a development server with data from the given fixture(s)"
       "validate:validate all installed modules"
     )
+
+    for cmd in $(./manage.py --help 2>&1 >/dev/null | \
+        awk -vdrop=1 '{ if (!drop) print substr($0, 3) } /^Available 
subcommands/ { drop=0 }')
+    do
+        if ! echo $subcommands | grep -qs "${cmd}:"
+        then
+            subcommands+=($cmd)
+        fi
+    done
     
     _describe -t subcommands 'django admin subcommand' subcommands && ret=0
     ;;

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: zsh
Source-Version: 4.3.9-3

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

zsh-doc_4.3.9-3_all.deb
  to pool/main/z/zsh/zsh-doc_4.3.9-3_all.deb
zsh_4.3.9-3.diff.gz
  to pool/main/z/zsh/zsh_4.3.9-3.diff.gz
zsh_4.3.9-3.dsc
  to pool/main/z/zsh/zsh_4.3.9-3.dsc



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.
Clint Adams <[email protected]> (supplier of updated zsh 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: SHA1

Format: 1.8
Date: Sun, 01 Mar 2009 11:16:34 -0500
Source: zsh
Binary: zsh zsh-doc zsh-static zsh-dev zsh-dbg
Architecture: source all
Version: 4.3.9-3
Distribution: unstable
Urgency: medium
Maintainer: Clint Adams <[email protected]>
Changed-By: Clint Adams <[email protected]>
Description: 
 zsh        - A shell with lots of features
 zsh-dbg    - A shell with lots of features (debugging symbols)
 zsh-dev    - A shell with lots of features (development files)
 zsh-doc    - zsh documentation - info/HTML format
 zsh-static - A shell with lots of features (static link)
Closes: 517448 517672
Changes: 
 zsh (4.3.9-3) unstable; urgency=medium
 .
   * ZU#13477: fix completion of files after rm.  closes: #517448.
   * Patch from Chris Lamb to complete custom Django management commands.
     closes: #517672.
Checksums-Sha1: 
 7de84361d7e3a235f1fee622ad74a80527301ffc 1280 zsh_4.3.9-3.dsc
 f48f1e53cae8066e8430653a2f7b6d5ca0866755 51080 zsh_4.3.9-3.diff.gz
 007ab009b294c86f1cc2c8003c0ea462002546a9 2226156 zsh-doc_4.3.9-3_all.deb
Checksums-Sha256: 
 2ee196cc6edce752c454993238a80984d9a8258ced36bc9ac927ec3db3d30523 1280 
zsh_4.3.9-3.dsc
 99b7ac73ec72e446292489b49b3d228fa1f7618d8abe407b28d6627acc11a9e1 51080 
zsh_4.3.9-3.diff.gz
 093c52e175ed4454e588b621dd033e5f05e0048a722e63a02dfaf20dba56835b 2226156 
zsh-doc_4.3.9-3_all.deb
Files: 
 5c0be1f9ce9958f07dca694f7ca7a33d 1280 shells optional zsh_4.3.9-3.dsc
 e419405408ac60791388295a0e0f6360 51080 shells optional zsh_4.3.9-3.diff.gz
 94e9cb9decc8066a45eba614b5b87d85 2226156 doc optional zsh-doc_4.3.9-3_all.deb

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

iD8DBQFJqrhF5m0u66uWM3ARAjYJAJ0espE0zOPGMd09JKdSzXmIpwHnsACfQYCJ
ISaR2jk0VF0IJ64irBdCEzo=
=ZwcJ
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to