[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Fedora-livecd-list] livecd-creator fails without mirrorlist repos



Hi,
Running livecd-creator (latest git version) having all repo lines in ks without mirrorlist gives me this error:

Traceback (most recent call last):
  File "/usr/bin/livecd-creator", line 1120, in <module>
    sys.exit(main())
  File "/usr/bin/livecd-creator", line 1097, in main
    target.parse(options.kscfg)
  File "/usr/bin/livecd-creator", line 319, in parse
    for cmd_name, cmd_url in self.repos:
ValueError: too many values to unpack

The repo lines in ks are:
repo --name=fedora --baseurl=http://mirrors.ircam.fr/pub/fedora/linux/releases/7/Everything/i386/os repo --name=upd --baseurl=http://mirrors.ircam.fr/pub/fedora/linux/updates/7/i386
repo --name=livna --baseurl=http://rpm.livna.org/fedora/7/i386/
repo --name=local --baseurl=file:///var/www/html

The attached patch solves the problem.

Cheers,
Alex
diff --git a/creator/livecd-creator b/creator/livecd-creator
index 62fb78f..7dbb7ec 100755
--- a/creator/livecd-creator
+++ b/creator/livecd-creator
@@ -316,7 +316,7 @@ class InstallationTarget:
 
             for repo in self.ksparser.handler.repo.repoList:
                 already_given = False
-                for cmd_name, cmd_url in self.repos:
+                for cmd_name, cmd_url, cmd_mirrorlist in self.repos:
                     if cmd_name == repo.name:
                         already_given = True
                         break

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]