This is not the correct usage of os.environ. Fix resetting of the environment.

This commit is contained in:
Fatih Aşıcı
2009-06-16 08:21:44 +00:00
parent 2b6c12f727
commit 3a23ab9d87
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -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
+2 -2
View File
@@ -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