mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-11 16:36:14 +01:00
fixed osc co proj pack file, which took great effort in following a link
without applying a project.diff -- now it merges correctly.
This commit is contained in:
parent
e8aa7df530
commit
4a3a071c41
@ -2971,22 +2971,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
sys.exit(1)
|
||||
|
||||
if filename:
|
||||
link_seen = False
|
||||
# Note: this logic should follow the `osc ls' logic
|
||||
# Note: same logic as with 'osc cat' (not 'osc ls', which never merges!)
|
||||
if expand_link:
|
||||
l = meta_get_filelist(apiurl,
|
||||
project,
|
||||
package,
|
||||
expand=False,
|
||||
revision=rev)
|
||||
link_seen = '_link' in l
|
||||
if link_seen:
|
||||
m = show_files_meta(apiurl, project, package)
|
||||
li = Linkinfo()
|
||||
li.read(ET.fromstring(''.join(m)).find('linkinfo'))
|
||||
if li.haserror():
|
||||
raise oscerr.LinkExpandError(project, package, li.error)
|
||||
project, package, rev = li.project, li.package, li.rev
|
||||
rev = show_upstream_srcmd5(apiurl, project, package, expand=True, revision=rev)
|
||||
get_source_file(apiurl, project, package, filename, revision=rev, progress_obj=self.download_progress)
|
||||
|
||||
elif package:
|
||||
|
Loading…
Reference in New Issue
Block a user