mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-04 18:46:17 +01:00
Merge pull request #1062 from adrianschroeter/gitupdate
fix crash on "osc up" for git based package/projects
This commit is contained in:
commit
9a5c775d47
@ -5176,6 +5176,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
for arg in arg_list:
|
||||
if is_project_dir(arg):
|
||||
prj = Project(arg, progress_obj=self.download_progress)
|
||||
if prj.scm_url:
|
||||
print("Please use git to update project", prj.name)
|
||||
continue
|
||||
|
||||
if conf.config['do_package_tracking']:
|
||||
prj.update(expand_link=opts.expand_link,
|
||||
@ -5237,6 +5240,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
# 'copy has local modifications.\nPlease revert/commit them ' \
|
||||
# 'and try again.'
|
||||
# sys.exit(1)
|
||||
if p.scm_url:
|
||||
print("Please use git to update package", p.name)
|
||||
continue
|
||||
|
||||
if not rev:
|
||||
if opts.expand_link:
|
||||
|
Loading…
Reference in New Issue
Block a user