mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-02 09:46:16 +01:00
- support listing of deleted source files "ls -D $PROJECT $PACKAGE"
This commit is contained in:
parent
9ab5a37113
commit
eea716f11f
1
NEWS
1
NEWS
@ -4,6 +4,7 @@
|
||||
- drop the support for deprecated cbinstall and cbpreinstall directives
|
||||
- allow to set maintainer or bugowner ship for a binary package initially, but ask back if
|
||||
this is the right place.
|
||||
- support listing of deleted source files "ls -D $PROJECT $PACKAGE"
|
||||
|
||||
0.139
|
||||
- various bugfixes for owner search
|
||||
|
@ -305,8 +305,6 @@ class Osc(cmdln.Cmdln):
|
||||
package = store_read_package(cwd)
|
||||
if len(args) > 1:
|
||||
package = args[1]
|
||||
if opts.deleted:
|
||||
raise oscerr.WrongArgs("Too many arguments when listing deleted packages")
|
||||
if len(args) > 2:
|
||||
if opts.deleted:
|
||||
raise oscerr.WrongArgs("Too many arguments when listing deleted packages")
|
||||
@ -405,6 +403,7 @@ class Osc(cmdln.Cmdln):
|
||||
verbose=opts.verbose,
|
||||
expand=opts.expand,
|
||||
meta=opts.meta,
|
||||
deleted=opts.deleted,
|
||||
revision=rev)
|
||||
link_seen = '_link' in l
|
||||
if opts.verbose:
|
||||
|
@ -2995,11 +2995,13 @@ def meta_get_packagelist(apiurl, prj, deleted=None):
|
||||
return [ node.get('name') for node in root.findall('entry') ]
|
||||
|
||||
|
||||
def meta_get_filelist(apiurl, prj, package, verbose=False, expand=False, revision=None, meta=False):
|
||||
def meta_get_filelist(apiurl, prj, package, verbose=False, expand=False, revision=None, meta=False, deleted=False):
|
||||
"""return a list of file names,
|
||||
or a list File() instances if verbose=True"""
|
||||
|
||||
query = {}
|
||||
if deleted:
|
||||
query['deleted'] = 1
|
||||
if expand:
|
||||
query['expand'] = 1
|
||||
if meta:
|
||||
|
Loading…
Reference in New Issue
Block a user