1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-09 12:35:48 +01: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 0.133
- add --meta option also to "list", "cat" and "less" commands - add --meta option also to "list", "cat" and "less" commands
- project checkout is skipping packages linking to project local packages by default - 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 0.132
- rdelete and undelete command requesting now a comment - rdelete and undelete command requesting now a comment

View File

@ -249,6 +249,8 @@ class Serviceinfo:
except urllib2.HTTPError, e: except urllib2.HTTPError, e:
if e.code != 400: if e.code != 400:
raise e raise e
self.project = project
self.package = package
def addVerifyFile(self, serviceinfo_node, filename): def addVerifyFile(self, serviceinfo_node, filename):
import hashlib import hashlib
@ -313,6 +315,10 @@ class Serviceinfo:
data = { 'name' : singleservice, 'command' : singleservice, 'mode' : '' } data = { 'name' : singleservice, 'command' : singleservice, 'mode' : '' }
allservices = [data] allservices = [data]
# set environment
os.putenv("OBS_SERVICE_PROJECT", self.project)
os.putenv("OBS_SERVICE_PACKAGE", self.package)
# recreate files # recreate files
ret = 0 ret = 0
for service in allservices: for service in allservices: