#361 global name 're' is not defined
Opened by julian. Modified

There seems to be a problem with the regexp code in kickstart.py. I'm running the following:

{{{
revisor --cli --kickstart-exact --kickstart=Respin.ks --model=systemj-i386 --install-dvd --product-name=SystemJ --product-path=SystemJ --iso-label=SystemJ1 --iso-basename=SystemJ --product-version=1 --destination-directory=/home/julian/Vorlagen/Spin

}}}

and receive the following error:

{{{
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/revisor/init.py", line 546, in run
self.base.run()
File "/usr/lib/python2.6/site-packages/revisor/base.py", line 106, in run
self.cli.run()
File "/usr/lib/python2.6/site-packages/revisor/cli.py", line 44, in run
self.base.lift_off()
File "/usr/lib/python2.6/site-packages/revisor/base.py", line 861, in lift_off
self.pkglist_from_ksdata(groupList=groupList, packageList=packageList, excludedList=excludedList, ignore_list=ignore_list)
File "/usr/lib/python2.6/site-packages/revisor/base.py", line 431, in pkglist_from_ksdata
ignore_list=ignore_list)
File "/usr/lib/python2.6/site-packages/revisor/kickstart.py", line 573, in pkglist_from_ksdata_normal
elif re.match('.-.-.*', pkg):
NameError: global name 're' is not defined
}}}

I'm using revisor-cli 2.1.6 from updates-testing, and haven't used any regular expressions in the kickstart file.


Woops, found the solution, it was so obvious i didn't think about it:
import re on the top of the file.
However, if I continue installing it tells me "No Package Matching anaconda-runtime. This is a required package." But this is another issue...

Woops, found the solution, it was so obvious i didn't think about it:
import re on the top of the file.
However, if I continue installing it tells me "No Package Matching anaconda-runtime. This is a required package." But this is another issue...

More precisely, issue #362

More precisely, issue #362

Metadata Update from @julian:
- Issue tagged with: kickstart

Metadata