Hi Mads,

Thanks for the patch.
fixed my local repo :)

On Tue, Jun 28, 2011 at 1:08 AM, Mads Kiilerich <mads@kiilerich.com> wrote:
Danishka Navin wrote, On 06/27/2011 08:21 PM:

Traceback (most recent call last):
 File "/usr/bin/livecd-creator", line 187, in <module>
   sys.exit(main())
 File "/usr/bin/livecd-creator", line 170, in main
   creator.install()
 File "/usr/lib/python2.7/site-packages/imgcreate/creator.py", line 667, in install
   ayum.runInstall()
 File "/usr/lib/python2.7/site-packages/imgcreate/yuminst.py", line 193, in runInstall
   except yum.Errors.RepoError, e:
UnboundLocalError: local variable 'yum' referenced before assignment

what could be the issue?

One of your configured repos failed, but livecd-creator failed before it could report the error message "Unable to download from repo : %s".

You can fix the bug in livecd-creator that hides your error message by making this edit:

--- /usr/lib/python2.7/site-packages/imgcreate/yuminst.py    2011-05-06 20:11:21.000000000 +0200
+++ /usr/lib/python2.7/site-packages/imgcreate/yuminst.py    2011-06-27 21:32:54.000000000 +0200
@@ -214,8 +214,8 @@

        # FIXME: callback should be refactored a little in yum
        sys.path.append('/usr/share/yum-cli')
-        import yum.misc
-        yum.misc.setup_locale()
+        import yum.misc as yum_misc
+        yum_misc.setup_locale()
        import callback
        cb = callback.RPMInstallCallback()
        cb.tsInfo = self.tsInfo

/Mads



--
Danishka Navin
http://danishkanavin.blogspot.com
http://twitter.com/danishkanavin
http://identi.ca/danishka
http://www.flickr.com/photos/danishkanavin/