Page 1 of 1

pkgtxt2db depends on libwww-perl

Posted: 24. Aug 2012, 13:21
by mimosa
This isn't a problem in the sense that I solved it by installing the library - but shouldn't it be picked up as a dep?

Very useful tool!

EDIT

However it does produce this message, many, many times:

Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/5.12.3/Pkgtxt2db/Pkgtxt2db.pm line 147

Re: pkgtxt2db depends on libwww-perl

Posted: 24. Aug 2012, 18:55
by fredg
This isn't a problem in the sense that I solved it by installing the library - but shouldn't it be picked up as a dep?
Yes, you're right, it will be fixed, thank you.
However it does produce this message, many, many times:

Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/5.12.3/Pkgtxt2db/Pkgtxt2db.pm line 147
It's just because it is too verbose ;)
You see that message every times a variable get an empty value.
It's not a bug, I will make it less verbose ;)
Very useful tool!
Thank you very much :)

++

Re: pkgtxt2db depends on libwww-perl

Posted: 24. Aug 2012, 20:31
by mimosa
Somewhat off-topic- what data type is this? A native Python one or part of the csv module?

Code: Select all

['pkgname;"pkgver";"arch";"pkgrel";"location";"dep";"sizeC";"sizeU";"Desc"']
(That was the first line I got out of the output from pkgtxt2db when I opened it with Python's csv module. Note that the format of the first item is different from the rest.)

I'm a Python beginner, but if I can work out how to get at the data, I think I can manage to write a useful script.