mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-02 17:56:15 +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
|
- 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
|
- allow to set maintainer or bugowner ship for a binary package initially, but ask back if
|
||||||
this is the right place.
|
this is the right place.
|
||||||
|
- support listing of deleted source files "ls -D $PROJECT $PACKAGE"
|
||||||
|
|
||||||
0.139
|
0.139
|
||||||
- various bugfixes for owner search
|
- various bugfixes for owner search
|
||||||
|
@ -305,8 +305,6 @@ class Osc(cmdln.Cmdln):
|
|||||||
package = store_read_package(cwd)
|
package = store_read_package(cwd)
|
||||||
if len(args) > 1:
|
if len(args) > 1:
|
||||||
package = args[1]
|
package = args[1]
|
||||||
if opts.deleted:
|
|
||||||
raise oscerr.WrongArgs("Too many arguments when listing deleted packages")
|
|
||||||
if len(args) > 2:
|
if len(args) > 2:
|
||||||
if opts.deleted:
|
if opts.deleted:
|
||||||
raise oscerr.WrongArgs("Too many arguments when listing deleted packages")
|
raise oscerr.WrongArgs("Too many arguments when listing deleted packages")
|
||||||
@ -405,6 +403,7 @@ class Osc(cmdln.Cmdln):
|
|||||||
verbose=opts.verbose,
|
verbose=opts.verbose,
|
||||||
expand=opts.expand,
|
expand=opts.expand,
|
||||||
meta=opts.meta,
|
meta=opts.meta,
|
||||||
|
deleted=opts.deleted,
|
||||||
revision=rev)
|
revision=rev)
|
||||||
link_seen = '_link' in l
|
link_seen = '_link' in l
|
||||||
if opts.verbose:
|
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') ]
|
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,
|
"""return a list of file names,
|
||||||
or a list File() instances if verbose=True"""
|
or a list File() instances if verbose=True"""
|
||||||
|
|
||||||
query = {}
|
query = {}
|
||||||
|
if deleted:
|
||||||
|
query['deleted'] = 1
|
||||||
if expand:
|
if expand:
|
||||||
query['expand'] = 1
|
query['expand'] = 1
|
||||||
if meta:
|
if meta:
|
||||||
|
Loading…
Reference in New Issue
Block a user