Problems with current 1.3.11

Rui Barreiros <[email protected]>
Newsgroups gmane.network.up2date.current.devel
Message-ID <[email protected]>
Hi there,

i've downloaded and install current 1.3.11, (rpm) and followed all the
steps in installation.txt etc etc.

Problems:
- when requesting something, apache child segmentation faults, when
adding the one and only channel (redhat-7.3-i386).
- cadmin update channel gives the error:

ERROR: who does the headers_dir not exist for a pre-existing channel?
Traceback (innermost last):
  File "/usr/sbin/cadmin", line 268, in ?
    main()
  File "/usr/sbin/cadmin", line 190, in main
    mychan.update(chan)
  File "/usr/share/current/channel.py", line 148, in update
    self._addSrcDir(dir)
  File "/usr/share/current/channel.py", line 1004, in _addSrcDir
    self._addSrcPackage(pathname, file)
  File "/usr/share/current/channel.py", line 1025, in _addSrcPackage
    linkname = misc.PathJoin(self.chanInfo['packagesource_dir'],
KeyError: packagesource_dir

Seem's that create doesn't create the dir headers in the db_dir (that's
why the ERROR above), and the var chanInfo['packagesource_dir'] doesn't
existe at the time update() is run (should be probably created on
__init__ ? dunno python that much). I made a little hack, added these
lines right after the :

self.chanInfo['schema_version'] = SCHEMA_VERSION

self.chanInfo['list_dir'] = '%s/%s' % \
    (self.chanInfo['web_dir'], 'listPackages')
self.chanInfo['headers_dir'] = '%s/%s' % \
    (self.chanInfo['web_dir'], 'getPackageHeader')
self.chanInfo['packagesource_dir'] = '%s/%s' % \
    (self.chanInfo['web_dir'], 'getPackageSource')
self.chanInfo['package_dir'] = '%s/%s' % \
    (self.chanInfo['web_dir'], 'getPackage')

we should only need packagesource_dir, but i left the other too.

- Error when cadmin checkdb channel
this one i couldn't fix it (as i said before, dunno python that much,
not my language), here's the error:

Traceback (innermost last):
  File "/usr/sbin/cadmin", line 268, in ?
    main()
  File "/usr/sbin/cadmin", line 175, in main
    mychan.check_consistency(chan['db_dir'])
  File "/usr/share/current/channel.py", line 108, in check_consistency
    check = int(self.chanInfo['srpm_check'])
KeyError: srpm_check

Same problem than the packagesource_dir, the key is not defined, i tried
to find for all the source (grep -i srpm_check) but found nothing, so i
don't know how srp_check would be defined.

p.s: i was wondering if it wasn't easier to make such a thing in perl,
or if there is any way of combining the python created db's with perl?

my best wishes, and keep up the good work.

Rui Barreiros
signature.asc (application/pgp-signature, 232 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA9a6tKu9hFJqMvrk0RAuKJAJ4qK9EMPEZibu132mEj/kBNExxfTwCfYPcN
PAKDPklcW4KtUVb4lI6eRpA=
=HDcP
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.