1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 09:56:13 +01:00

Make 'trust always' more verbose, so that a user learns how to undo its effect.

Removed a few tabs.
This commit is contained in:
Juergen Weigert 2010-06-29 15:32:53 +02:00
parent 2ec85b7548
commit 382dd29e03
2 changed files with 5 additions and 4 deletions

View File

@ -335,6 +335,7 @@ def check_trusted_projects(apiurl, projects):
print "Note that malicious packages can compromise the build result or even your system."
r = raw_input(trustprompt % { 'project':prj })
if r == '1':
print "adding '%s' to ~/.oscrc: ['%s']['trusted_prj']" % (prj,apiurl)
trusted.append(prj)
elif r != '2':
print "Well, good good bye then :-)"

View File

@ -1622,7 +1622,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if cmd == 'approvenew':
print "\n *** Approve them all ? [y/n] ***"
if sys.stdin.read(1) == "y":
if not opts.message:
opts.message = edit_message()
for result in results:
@ -4311,15 +4311,15 @@ Please submit there instead, or use --nodevelproject to force direct submission.
otherwise all binary packages in the project will be deleted.
usage:
osc wipebinaries OPTS # works in checked out project dir
osc wipebinaries OPTS # works in checked out project dir
osc wipebinaries OPTS PROJECT [PACKAGE]
${cmd_option_list}
"""
args = slash_split(args)
package = project = None
apiurl = self.get_api_url()
package = project = None
apiurl = self.get_api_url()
# try to get project and package from checked out dirs
if len(args) < 1: