From 253d760a760d07ac626216528b7f26204a7a5511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 23 Jun 2022 07:56:30 +0200 Subject: [PATCH] fix crash on "osc up" for git based package/projects --- osc/commandline.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index e876e2f2..c1cd2061 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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: @@ -9332,7 +9338,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. opts.no_echo = True opts.prompt = True opts.select_password_store = True - prompt_value = 'Password: ' + prompt_value = 'Password : ' if len(args) != 1: raise oscerr.WrongArgs('--change-password only needs the apiurl') args = [args[0], 'pass']