pisi 0.5.2-r0.4 seems to have problems loading its config.

r...@om-gta02 ~ $ pisi -v shrsim opimd
...
Verbose mode on
In case of conflicts I use the following strategy: Skip
Traceback (most recent call last):
  File "/bin/pisi", line 153, in <module>
    pisicli.startCLI()
  File "/opt/pisi/pisicli.py", line 214, in startCLI
    config,  configfolder = pisi.readConfiguration()
  File "/opt/pisi/pisi.py", line 57, in readConfiguration
    pisiprogress.getCallback().verbose("Reading configfile: %s" %(configfile) )
NameError: global name 'configfile' is not defined

This patch fixes the problem for me, looks like some of the config code 
was being re-factored and got broken.

--- pisi.py.org Mon May  3 18:49:15 2010
+++ pisi.py     Thu May  6 16:38:28 2010
@@ -54,6 +54,7 @@
     Loads configuration from the configuration file and returns the container 
with all the information as well as the config folder
     """
     configfolder = os.path.join(os.environ.get('HOME'), '.pisi')
+    configfile = getConfigLocation()
     pisiprogress.getCallback().verbose("Reading configfile: %s" %(configfile) )
     config = getConfiguration()
     return config, configfolder
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to