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

- make 'resolved' more robust

- add 'repourls' subcommand
This commit is contained in:
Dr. Peter Poeml 2006-06-02 14:00:58 +00:00
parent f513dc91e3
commit 749a1f76c9
2 changed files with 22 additions and 1 deletions

View File

@ -166,6 +166,25 @@ def diff(args):
def repourls(args):
"""repourls: shows URLs on which to access the .repos files
usage: 1. repourls
2. repourls [dir1] [dir2] ...
"""
args = parseargs(args)
pacs = findpacs(args)
url_tmpl = 'http://software.opensuse.org/download/%s/%s/%s.repo'
for p in pacs:
platforms = get_platforms_of_project(p.prjname)
for platform in platforms:
print url_tmpl % (p.prjname.replace(':', ':/'), platform, p.prjname)
def checkout(args):
"""checkout (co): Check out content from the server.
@ -591,6 +610,7 @@ cmd_dict = {
'meta': meta,
'platforms': platforms,
'delete': delete,
'repourls': repourls,
'resolved': resolved,
'results': results,
'results_meta': results_meta,

View File

@ -179,7 +179,8 @@ class Package:
myfilename = os.path.join(self.dir, n + '.mine')
upfilename = os.path.join(self.dir, n + '.r' + self.rev)
os.unlink(myfilename)
try: os.unlink(myfilename)
except: pass
os.rename(upfilename, storefilename)
self.in_conflict.remove(n)