Tuesday, June 24, 2008

» webpin CLI 1.0.0

webpin 1.0.0 is available in the openSUSE:Tools build service repository. The only change is that it supports searching for openSUSE 11.0 packages (and that there is an openSUSE 11.0 package of webpin).

Labels: ,

1 Comments:

Blogger robermann said...

BTW,
--zypper option is now fixed?

In order to work in 10.3, I had to change the file:
/usr/lib/python2.5/site-packages/webpin/Zypper.py

In the lines marked with @NEW@:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
try:
zypper = os.popen('%s -v sl' %
self.cmd, 'r') #@NEW@
# skip two header lines
zypper.readline()
zypper.readline()
zypper.readline() # @NEW@
# parse lines
for line in zypper.readlines():
line = line[:-1] # remove trailing \n
# skip empty lines (not any at
this point, but in order to make
# the line parsing just a
little less fragile:
if len(line.strip()) > 0:
fields = line.split('|')

enabled =
(fields[1].strip() == 'Yes')
url =
normalizeURL(fields[6].strip()) # @NEW@

m = buildServiceRegex.match(url)

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Ciao
rob

21:59  

Post a Comment

<< Home