mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-03 10:06:17 +01:00
- support source services using OBS project or package name
This commit is contained in:
parent
db2e538efd
commit
cf1bd2d5df
4
NEWS
4
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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user