This is not the correct usage of os.environ. Fix resetting of the environment.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2009-06-16 Fatih Aşıcı <fatih@pardus.org.tr>
|
||||
* (operations/build.py): Fix resetting of the environment.
|
||||
|
||||
2009-06-06 Ozan Çağlayan <ozan@pardus.org.tr>
|
||||
* (operations/build.py): Sort the files according to their path names
|
||||
before adding them to the tarfile. This helps lzma to compress the
|
||||
|
||||
@@ -1017,8 +1017,8 @@ class Builder:
|
||||
# buildfarm actually. buildfarm re-inits pisi for each build
|
||||
# and left environment variables go directly into initial dict
|
||||
# making actionsapi.variables.exportFlags() useless...
|
||||
os.environ = {}
|
||||
os.environ = copy.deepcopy(ctx.config.environ)
|
||||
os.environ.clear()
|
||||
os.environ.update(ctx.config.environ)
|
||||
|
||||
return self.new_packages, self.old_packages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user