projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f49451
)
Fix CSW available package parsing
author
Jamie Cameron
<jcameron@webmin.com>
Sun, 20 Dec 2009 06:29:46 +0000
(22:29 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Sun, 20 Dec 2009 06:29:46 +0000
(22:29 -0800)
software/csw-lib.pl
patch
|
blob
|
history
diff --git
a/software/csw-lib.pl
b/software/csw-lib.pl
index
d067f7d
..
8c31783
100755
(executable)
--- a/
software/csw-lib.pl
+++ b/
software/csw-lib.pl
@@
-99,7
+99,7
@@
while(<PKG>) {
s/\r|\n//g;
s/#.*$//;
next if (/^\s*WARNING:/);
- if (/^\s*(\S+)\s+(\S+)\s+(\d\S+)\s+([0-9\.]+)\s+(KB|MB|GB)/i) {
+ if (/^\s*(\S+)\s+(\S+)\s+(\d\S+)\s+([0-9\.]+)\s+(KB|MB|GB
|B
)/i) {
# New pkgutil format
push(@rv, { 'name' => $1, 'version' => $3,
'select' => "$1-$3" });