mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-04 22:53:42 +02:00
Merge pull request #1626 from mlschroe/master
Store the container annotation in the "containers" directory
This commit is contained in:
@@ -193,6 +193,8 @@ class Buildinfo:
|
||||
else:
|
||||
self.preinstallimage = None
|
||||
|
||||
self.containerannotation = root.findtext("containerannotation")
|
||||
|
||||
def has_dep(self, name):
|
||||
for i in self.deps:
|
||||
if i.name == name:
|
||||
@@ -1314,6 +1316,12 @@ def main(apiurl, store, opts, argv):
|
||||
print("Using prefered package: " + path + "/" + filename)
|
||||
os.unlink(tffn)
|
||||
|
||||
if bi.containerannotation:
|
||||
if not os.path.exists("containers"):
|
||||
os.makedirs("containers")
|
||||
with open("containers/annotation", "wb") as f:
|
||||
f.write(bi.containerannotation.encode())
|
||||
|
||||
if prefer_pkgs:
|
||||
localpkgdir = "repos/_local/"
|
||||
os.mkdir(localpkgdir)
|
||||
|
Reference in New Issue
Block a user