Announcement:
I'm working on a major '0setup' overhaul, for everyone, by using perl and regex to convert the repo databases to standard puppy format.
Currently I have all three ubuntu files converting in ~7 seconds on a 900mhz machine (that's NOT a typo).
My entire '0setup' times are this:
Code: Select all
9 min 56 sec - ubuntu
7 min 42 sec - debian
48 sec - slackware
10 min 7 sec - arch
Request for help:
Anyone that has completed running '0setup' with the default woof alpha 4 using any of the following configurations; ubuntu, debian, slackware, or arch, could you please post any or all of the following files that you can for me to compare with my files. I've been unable to run them completely with the standard code due to my slow machine. I've made it a ways and they look like they are correct. I just need to do a full comparison.
Code: Select all
Packages-arch-200904-community
Packages-arch-200904-core
Packages-arch-200904-extra
Packages-debian-lenny-contrib
Packages-debian-lenny-main
Packages-debian-lenny-non-free
Packages-slackware-12.2-official
Packages-slackware-12.2-slacky
Packages-ubuntu-jaunty-main
Packages-ubuntu-jaunty-multiverse
Packages-ubuntu-jaunty-universe
Code:
I have attached the modified and new script(s) I'm working on. (btw, ubuntu uses the same format as debian).
Code: Select all
0setup
convrepo-arch
convrepo-debian
convrepo-slack
Code Points:
1) 0setup has all but one change on lines 221-331 and one small change at line 383 (there was an echo without ""'s that was throwing an error). The other changes are simply commenting out the bash script that did the parsing between the switch options and calling the perl scripts instead.
2) The other three scripts are the perl logic to convert the text files. They each accept two arguments for 'file to convert' and 'save file name'. One can see these passed in as Bash vars from 0setup.
3) I attempted to name the perl files so they fit nicely in order and were easy to tell apart with a quick glance.
4) each perl script has a few comments regarding 'original output', 'new output' and 'expected string array value'. Hopefully these are self explainatory at this point.
5) convrepo-arch will kick out a few "errors". These are all expected and acounted for by the logic in the scripts. all scripts should maintain good database | formats if matches fail or suceed.
Code Testing:
1) to test, un gzip a fresh woofalpha4 and copy everything into the main directory and the run './0setup' using all four configs. Don't bother running './1download' yet unless you want to see what happens next..
2) to test results, use gnumeric to import a text file. Use pipe (|) delimiters and no charater for 'text quantifier'.
a) be careful, gnumeric will try to slip in a comma as a delimter on one of the examples. be sure to uncheck it or colums with be picked with |'s AND ,'s.
b) Also the third? colum with be formated for dates often. Change general formating to text and left align and all will look nice.
Objective:
I have the next two days off (due to rain) except for a few hours of hockey tomorrow night (GO
REDWINGS!!). Hopefully I can get this squared away by then. That should fall around noonish thursday in AU?
Next Project:
It might be possible to save some processor time, by using perl, during the logic after the message "Checking that compat-distro pkgs specified in PKGS_SPECS_TABLE actually exist..." as well. But I'll save that for after the above.