1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-11 16:36:14 +01:00

- checkout of entire project is skipping packages which links to project local packages by default.

This commit is contained in:
Adrian Schröter 2011-07-20 17:27:05 +02:00
parent 1630792e21
commit 0ba9383e17
2 changed files with 13 additions and 0 deletions

1
NEWS
View File

@ -1,5 +1,6 @@
0.133
- add --meta option also to "list", "cat" and "less" commands
- project checkout is skipping packages linking to project local packages by default
0.132
- rdelete and undelete command requesting now a comment

View File

@ -3474,6 +3474,18 @@ Please submit there instead, or use --nodevelproject to force direct submission.
# all packages
for package in meta_get_packagelist(apiurl, project):
# don't check out local links by default
try:
m = show_files_meta(apiurl, project, package)
li = Linkinfo()
li.read(ET.fromstring(''.join(m)).find('linkinfo'))
if not li.haserror():
if li.project == project:
print statfrmt('S', package + " link to package " + li.package)
continue
except:
pass
try:
checkout_package(apiurl, project, package, expand_link = expand_link, \
prj_dir = prj_dir, service_files = opts.source_service_files, server_service_files = opts.server_side_source_service_files, progress_obj=self.download_progress, size_limit=opts.limit_size, meta=opts.meta)