From cf1bd2d5df555da0d40fd6085dfc3d5a10af7b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 18 Aug 2011 11:32:19 +0200 Subject: [PATCH] - support source services using OBS project or package name --- NEWS | 4 ++++ osc/core.py | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/NEWS b/NEWS index a2b76139..6d29fec6 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,10 @@ 0.133 - add --meta option also to "list", "cat" and "less" commands - project checkout is skipping packages linking to project local packages by default +# +# Features which requires OBS 2.3 +# + - support source services using OBS project or package name 0.132 - rdelete and undelete command requesting now a comment diff --git a/osc/core.py b/osc/core.py index a30ec30b..f582c427 100644 --- a/osc/core.py +++ b/osc/core.py @@ -249,6 +249,8 @@ class Serviceinfo: except urllib2.HTTPError, e: if e.code != 400: raise e + self.project = project + self.package = package def addVerifyFile(self, serviceinfo_node, filename): import hashlib @@ -313,6 +315,10 @@ class Serviceinfo: data = { 'name' : singleservice, 'command' : singleservice, 'mode' : '' } allservices = [data] + # set environment + os.putenv("OBS_SERVICE_PROJECT", self.project) + os.putenv("OBS_SERVICE_PACKAGE", self.package) + # recreate files ret = 0 for service in allservices: