[Revisor-users] Question about strip_copy_dir & %post directives
Kevin Wilson
kevin.wilson at comtrol.com
Fri Sep 7 17:44:59 UTC 2007
I added the import yum to load_kickstart.py but now this weird message
pops up. I'm thinking my addition of the import directive was wrong?
Set destination directory to /srv/revisor/f7-i386
self.cfg.repos from load kickstart: {'fedora': True, 'updates': True}
Traceback (most recent call last):
File "/root/revisor/revisor/load_kickstart.py", line 207, in
button_forward_clicked
self.store_options()
File "/root/revisor/revisor/load_kickstart.py", line 173, in store_options
repoObj = yum.yumRepo.YumRepository(repo["name"])
AttributeError: FC6_RepoData instance has no attribute '__getitem__'
Kevin Wilson wrote:
> Hey Jeroen,
>
> The latest git has a glitch (see below). Also, if I just want to grab
> the latest commits from git to update my local copy which cmd would I
> use? I looked at the help list and there wasn't an "update" cmd and what
> its equivalent would be wasn't apparent to me. (sorry, svn users here)
>
> **************************************************************************
> Setting comps to '/etc/revisor/comps-f7.xml' (from configuration file
> model f7-i386)
> Checking working directories
> Checking destination directories
> Set destination directory to /srv/revisor/f7-i386
> self.cfg.repos from load kickstart: {'fedora': True, 'updates': True}
> Traceback (most recent call last):
> File "/root/revisor/revisor/load_kickstart.py", line 206, in
> button_forward_clicked
> self.store_options()
> File "/root/revisor/revisor/load_kickstart.py", line 172, in store_options
> repoObj = yum.yumRepo.YumRepository(repo["name"])
>
> NameError: global name 'yum' is not defined
> **************************************************************************
>
>
> Jeroen van Meeuwen wrote:
>> Kevin Wilson wrote:
>>> Sweet! I'll give git a pull tomorrow to test everything and also see how my %post section copy statements work out. Thanks again for the copy_dir changes, it plopped the folder in root perfectly.
>>>
>>> Question: Must I prefix the cp directives in the %post section of my kickstart file same as you did for the copy_dir operation or will the absolute paths I have now work ok?
>>>
>> Your %post script will run just like it would on the running (rebooted
>> after installation) system.
>>
>> Kind regards,
>>
>> Jeroen van Meeuwen
>> -kanarip
>>
>> --
>> http://www.kanarip.com/
>> RHCE, LPIC-2, MCP, CCNA
>> C6B0 7FB4 43E6 CDDA D258 F70B 28DE 9FDA 9342 BF08
>> _______________________________________________
>> Revisor-users mailing list
>> Revisor-users at fedoraunity.org
>> http://lists.fedoraunity.org/mailman/listinfo/revisor-users
>>
> _______________________________________________
> Revisor-users mailing list
> Revisor-users at fedoraunity.org
> http://lists.fedoraunity.org/mailman/listinfo/revisor-users
>
More information about the Revisor-users
mailing list