1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

- support source services using OBS project or package name

This commit is contained in:
Adrian Schröter 2011-08-18 11:32:19 +02:00
parent db2e538efd
commit cf1bd2d5df
2 changed files with 10 additions and 0 deletions

4
NEWS
View File

@ -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

View File

@ -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: