Your message dated Tue, 03 Dec 2013 15:21:25 +0000
with message-id <[email protected]>
and subject line Bug#699851: fixed in zsh 5.0.2-test-3-1
has caused the Debian Bug report #699851,
regarding zsh: please add completion for dcut
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.)


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

Please add completion support for dcut to zsh. I've attached an initial
version of the completion supporting both dcut from dput and dput-ng.

There is one TODO left: the host completion doesn't work since I didn't
manage to get it right after a day of trying. I'd appreciate any help
and hints to get this final bit fixed.

Regards
-- 
Sebastian Ramacher
#compdef dcut

# TODO: dcut supports two ways to be called:
#  * dcut HOST COMMAND ...
#  * dcut COMMAND ...
# So ideally, if the first argument is completed, both commands and hosts should
# be offered. If host is given, the second argument should be completed as
# command and if not, it should be completed as command specific option.

function _dcut_commands() {
  local -a cmds
  if _pick_variant dcutng="usage: dcut" dcut -v ; then
    cmds=(
      dm:'manage Debian Maintainer permissions'
      break-the-archive:'break the archive'
      reschedule:'reschedule a deferred upload'
      cancel:'cancel a deferred upload'
      rm:'remove a file from the upload queue'
      upload:'upload a command file'
    )
  else
    cmds=(
      rm:'remove a file from the upload queue'
      cancel:'cancel a deferred upload'
      reschedule:'reschedule a deferred upload'
    )
  fi
  _describe -t commands command cmds
}

function _dcut() {
  local -a all_opts dcut_opts dcut_ng_opts
  local state line context
  local -A opt_args
  local curcontext="${curcontext}"

  all_opts=(
    '(-c --config)'{-c,--config=}'[specify config file]:config file:_files'
    '(-h --help)'{-h,--help}'[show help message and exit]'
    '(-m --maintainer)'{-m,--maintainer=}'[use maintainer for upload field and 
GPG key selection]:maintainer address'
    '(-k --keyid)'{-k,--keyid}'[use key id for signing]:keyid'
    '(-O --output)'{-O,--output=}'[write command file to file instead of 
uploading]:output file:_files'
    '(-P --passive)'{-P,--passive}'[use passive FTP for uploads]'
    '(-v --version)'{-v,--version}'[show version information]'
    ':command:_dcut_commands'
  )

  dcut_opts=(
    '(-d --debug)'{-d,--debug}'[debug mode]'
    '(-s --simulate)'{-s,--simulate}'[simulate an upload only]'
    '(-i --input)'{-i,--input=}'[create commands file to remove every file 
listed in the changes file]:changes file:_files -g"*.changes(-.)"'
    '(-U --upload)'{-U,--upload=}'[upload commands file]:commands file:_files'
    '(--host 1)'{--host=}'[upload to host if it is named like a 
command]:host:_dput_hosts'
    '*:: :->dcut_command_arguments'
  )

  dcut_ng_opts=(
    '*'{-d,--debug}'[enable debug messages, repeat twice to increase the 
verbosity level]'
    '*'{-s,--simulate}'[simulate an upload only, repeat twice to increase level 
of simulation]'
    '*:: :->dcut_ng_command_arguments'
  )

  if _pick_variant dcutng="usage: dcut" dcut -v ; then
    _arguments -C \
      "$all_opts[@]" "$dcut_ng_opts[@]" && return
  else
    _arguments -C \
      "$all_opts[@]" "$dcut_opts[@]" && return
  fi

  case $state in
  (dcut_command_arguments)
    # arguments to dcut commands
    local -a opts
    case ${line[1]} in
    (cancel)
      # dcut cancel arguments
      opts=(
        '1::changes file:_files -g"*.changes(-.)"'
      )
      ;;
    (reschedule)
      # dcut reschedule arguments
      opts=(
        '1::changes file:_files -g"*.changes(-.)"'
        '2::new delayed queue:(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15)'
      )
      ;;
    (rm)
      # dcut rm arguments
      opts=(
        '--searchdirs[search in all directores for the given files]'
        '1::file to be deleted:_files'
      )
      ;;
    esac
    _arguments "$opts[@]" && return
    ;;
  (dcut_ng_command_arguments)
    # arguments to dput-ng's dcut commands
    local -a opts
    case ${line[1]} in
    (cancel)
      # dcut cancel arguments
      opts=(
        '(-f --filename)'{-f,--filename}'[.changes file name of the upload to 
be cancelled]:file name:_files -g"*.changes(-.)"'
      )
      ;;
    (dm)
      # dcut dm arguments
      opts=(
        '--uid[full name and address or GPG fingerprint of the Debian 
Maintainer]'
        '*--allow[grant permission to upload a source package]:source package'
        '*--deny[remove permission to upload a source pckage]:source package'
      )
      ;;
    (reschedule)
      # dcut reschedule arguments
      opts=(
        '(-f --filename)'{-f,--filename}'[.changes file name to be 
rescheduled]:file name:_files -g"*.changes(-.)"'
        '(-d --days)'{-d,--days}'[new delayed queue]:days:(0 1 2 3 4 5 6 7 8 9 
10 11 12 13 14 15)'
      )
      ;;
    (rm)
      # dcut rm arguments
      opts=(
        '*'{-f,--filename}'[file name to be removed]:file name:_files'
        '--searchdirs[search in all directores for the given files]'
      )
      ;;
    (upload)
      # dcut upload arguments
      opts=(
        '-f --filename)'{-f,--filename}'[file to be uploaded]:file name:_files'
      )
      ;;
    esac
    _arguments "$opts[@]" && return
    ;;
  esac
}

_dcut "$@"

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: zsh
Source-Version: 5.0.2-test-3-1

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.

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.
Axel Beckert <[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: Tue, 03 Dec 2013 14:23:42 +0100
Source: zsh
Binary: zsh zsh-common zsh-doc zsh-static zsh-dev zsh-dbg zsh-beta zsh-beta-doc
Architecture: source all amd64
Version: 5.0.2-test-3-1
Distribution: experimental
Urgency: low
Maintainer: Debian Zsh Maintainers <[email protected]>
Changed-By: Axel Beckert <[email protected]>
Description: 
 zsh        - shell with lots of features
 zsh-beta   - transitional package to zsh
 zsh-beta-doc - transitional package to zsh-doc
 zsh-common - architecture independent files for Zsh
 zsh-dbg    - shell with lots of features (debugging symbols)
 zsh-dev    - shell with lots of features (development files)
 zsh-doc    - zsh documentation - info/HTML format
 zsh-static - shell with lots of features (static link)
Closes: 691601 697247 699851 707760 724251
Changes: 
 zsh (5.0.2-test-3-1) experimental; urgency=low
 .
   * [d799ac78] New upstream release candidate 5.0.2-test-3
     - [b95cf81b] Remove patches applied upstream
     - [e30f4023] Refresh patch replace-texi2html-with-makeinfo
     - [d1fce554] debian/rules: Util/helpfiles now requires parameters, but
       allows one to reduce our own magic around it.
     - [8efa92fb] Add newly generated help files to debian/clean
     - Includes many completion updates (Closes: #691601, #697247, #699851)
   * [abfb3b13] Bump Standards-Version to 3.9.5 (no changes)
   * [dcc18dd5] zsh-beta.postrm: Unregister /etc/shells entry on removal
     (Closes: #724251)
   * [f75d7101] Make lintian override zsh version agnostic
   * [8fe0f364] zsh-common: Remove Breaks against older zsh version
     (Hopefully closes: #707760)
   * [df234cd6] Update watch file to also catch release candidates
   * [1e707e44] Fix one test-suite failure on static builds due to
     non-existent $HOME. Thanks to Bart Schaefer and Peter Stephenson for
     spotting the cause.
   * [04b8f147,640ecca3] Fix test suite failures on Jenkins builds.
Checksums-Sha1: 
 c69f63b30dde543a5a573b35645319ebb3cea623 1899 zsh_5.0.2-test-3-1.dsc
 3b410be943865a9a6c9b675626ccd3ba36c4a8d3 2409642 zsh_5.0.2-test-3.orig.tar.bz2
 8f234e78d0af8fdb56bc56323a61cabb42932127 72485 zsh_5.0.2-test-3-1.debian.tar.gz
 ed45eacbf2c96450fbf618857e08ff7474ec078b 3006596 
zsh-common_5.0.2-test-3-1_all.deb
 f518eaeae12b17c2e328a999f17564641ced1fd5 2428604 zsh-doc_5.0.2-test-3-1_all.deb
 18114dddbe1fd1b4676d56c80c278eaf89d125d8 1460 zsh-beta_5.0.2-test-3-1_all.deb
 1e1fd6ccde671d16db975388425679c4c5cae67a 1106 
zsh-beta-doc_5.0.2-test-3-1_all.deb
 12067b082e7843cab44770b55dadf4718c43bec5 609042 zsh_5.0.2-test-3-1_amd64.deb
 355133da77ccd39535be69da0e7f6ba850f7a858 904472 
zsh-static_5.0.2-test-3-1_amd64.deb
 6201137e2d4aa2204d1b026f457ee94aa3961598 47754 zsh-dev_5.0.2-test-3-1_amd64.deb
 b5c0eb1db6d8a1e4fd3e9905a7736dd4d6b24186 1520570 
zsh-dbg_5.0.2-test-3-1_amd64.deb
Checksums-Sha256: 
 3c676e0fc8263e5be7dd8458d9e7da2a57eb0ec2dcae93ed1cee620afddd2140 1899 
zsh_5.0.2-test-3-1.dsc
 64a9dcd3d53cbbc8bba395fd2718e67c766a0b9c58fb66ab94156a728de7b771 2409642 
zsh_5.0.2-test-3.orig.tar.bz2
 dc12ba74c38e1af0edd41dc34d574aefda11d1d44470ba6359652e38af480eea 72485 
zsh_5.0.2-test-3-1.debian.tar.gz
 5c6334d88ebe9d39f743888254318252d730a28088d176caf3d3b5c3dd6a9a8f 3006596 
zsh-common_5.0.2-test-3-1_all.deb
 7ae56e28ed4a9fa4c77fc111f0690177c1b419f415b892b1aa6dbadd629a4305 2428604 
zsh-doc_5.0.2-test-3-1_all.deb
 fb129f959b3799e6adf02297cfbcaf4c6d1ff826e9f6ae86716983a39835277b 1460 
zsh-beta_5.0.2-test-3-1_all.deb
 a92bf98d7fc5b23032fcfc3f58a949b74ae2d90fcbe9118d41072cd964160309 1106 
zsh-beta-doc_5.0.2-test-3-1_all.deb
 354f595a8dd61c16fa3c872c15e02775e60ade77bd4fd002851f67b33815aed6 609042 
zsh_5.0.2-test-3-1_amd64.deb
 fe0a7064eff044d33bc6fc73d516bed5f513d3e4d3f561c6d00757fdf55f3ddb 904472 
zsh-static_5.0.2-test-3-1_amd64.deb
 b8c38f825d540f09d98b3efbf09cf0c8f038bf06edd1bdc2f32692256acf9c1d 47754 
zsh-dev_5.0.2-test-3-1_amd64.deb
 3ae21f29f42e21b373d25006f8aa8ad38ca797acea1a19ced835d48e0c85e60e 1520570 
zsh-dbg_5.0.2-test-3-1_amd64.deb
Files: 
 ebd1e1c534269d625a90230042078714 1899 shells optional zsh_5.0.2-test-3-1.dsc
 48097247ae450214e152b4d2567182d3 2409642 shells optional 
zsh_5.0.2-test-3.orig.tar.bz2
 d510249c0efffd6b9abb0a0915c4bf9d 72485 shells optional 
zsh_5.0.2-test-3-1.debian.tar.gz
 418c8e5e8d26c189af406f3e7bcff44c 3006596 shells optional 
zsh-common_5.0.2-test-3-1_all.deb
 8f7c4c226dbb66118c286ed6682e99f8 2428604 doc optional 
zsh-doc_5.0.2-test-3-1_all.deb
 4b32f1f333eceb4236c44dff4b17591b 1460 oldlibs extra 
zsh-beta_5.0.2-test-3-1_all.deb
 74228bf3a51c8bfce74069a591ce56ab 1106 oldlibs extra 
zsh-beta-doc_5.0.2-test-3-1_all.deb
 1c6fe493b7db952127052d6b8694cff7 609042 shells optional 
zsh_5.0.2-test-3-1_amd64.deb
 eb733882e20374a59691a460e468bf99 904472 shells optional 
zsh-static_5.0.2-test-3-1_amd64.deb
 c428371778eefffef67c852d7c34175c 47754 libdevel optional 
zsh-dev_5.0.2-test-3-1_amd64.deb
 d6ad5a1808972366963292185ac6a283 1520570 debug extra 
zsh-dbg_5.0.2-test-3-1_amd64.deb

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

iEYEARECAAYFAlKd5BIACgkQwJ4diZWTDt6hqwCcDLmOu12IMjQLh8Y7wvIKoNCX
+fsAn2uNo+8tzJBhU1NohHQs5o7kP4sU
=Jfyo
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to