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:
parent
db2e538efd
commit
cf1bd2d5df
4
NEWS
4
NEWS
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user