Skip to content

Commit

Permalink
set OSC_VERSION environment for source services
Browse files Browse the repository at this point in the history
will be needed by new obs_scm service
  • Loading branch information
adrianschroeter committed Apr 1, 2016
1 parent c5f56e7 commit 65201ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
0.154
-
- set OSC_VERSION environment for source services

0.153
- "my sr" is using the server side request collection to get right results
Expand Down
3 changes: 3 additions & 0 deletions osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ def execute(self, dir, callmode = None, singleservice = None, verbose = None):
data = { 'name' : singleservice, 'command' : [ singleservice ], 'mode' : '' }
allservices = [data]

# services can detect that they run via osc this way
os.putenv("OSC_VERSION", get_osc_version())

# set environment when using OBS 2.3 or later
if self.project != None:
os.putenv("OBS_SERVICE_PROJECT", self.project)
Expand Down

0 comments on commit 65201ad

Please sign in to comment.