Web interface import hints

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

If while executing ./scripts/packages_xml_in you get:

Can't locate Connect.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ./scripts/packages_xml_in line 5.
BEGIN failed--compilation aborted at ./scripts/packages_xml_in line 5.

You can simply add on head of ./scripts/packages_xml_in

push @INC,"/your/installation/path/scripts";

If you are using WPKG multiple XML style (i.e. you have packages/adobe.xml, packages/winzip.xml and so on), you can use the bash for command:

for i in `ls -f1 /wpkg/install/path/packages/ | grep ^[a-z] `; do ./scripts/packages_xml_in /wpkg/install/path/packages/$i; done

Same way for Host and Profiles:

for i in `ls -f1 /wpkg/install/path/hosts/ | grep ^[a-z] `; do ./scripts/hosts_xml_in /wpkg/install/path/hosts/$i; done
for i in `ls -f1 /wpkg/install/path/profiles/ | grep ^[a-z] `; do ./scripts/profiles_xml_in /wpkg/install/path/profiles/$i; done

That's all folks