Error with subchannels in current 1.4.2

Ricardo Ariel Gorosito <[email protected]> 06 Feb 2003 15:05:28 -0300
Newsgroups gmane.network.up2date.current.devel
Message-ID <[email protected]>
The error:

feb 06 14:27:12 Current v1.4.2 starting up
feb 06 14:27:13 Error trying to add channel from
/home/soft/current/db/freshrpms-7.3-i386
feb 06 14:2713 : EXCEPTION in /usr/share/current/current_apache.py,
init_backend(), 90 [logException()]
Traceback (innermost last):
  File "/usr/share/current/current_apache.py", line 87, in init_backend
    packagedb.db.addChannel(chan_info)
  File "/usr/share/current/packagedb.py", line 54, in addChannel
    new_arch = tmp.chanInfo['arch']
KeyError: arch
feb 06 14:27:13 Error trying to add channel from
/home/soft/current/db/freshrpms-8.0-i386
feb 06 14:2713 : EXCEPTION in /usr/share/current/current_apache.py,
init_backend(), 90 [logException()]
Traceback (innermost last):
  File "/usr/share/current/current_apache.py", line 87, in init_backend
    packagedb.db.addChannel(chan_info)
  File "/usr/share/current/packagedb.py", line 54, in addChannel
    new_arch = tmp.chanInfo['arch']
KeyError: arch

My config:

<snip>
############################################################################
[redhat-7.3-i386]
name = Red Hat Linux 7.3
parent_channel = 
arch = i386
os_release = 7.3
description = Red Hat Linux 7.3
srpm_check = 0

rpm_dirs = /u/soft/current/paquetes/redhat-7.3/RPMS
           /u/soft/current/paquetes/updates-7.3/RPMS

src_dirs = /u/soft/current/paquetes/redhat-7.3/SRPMS
           /u/soft/current/paquetes/updates-7.3/SRPMS

############################################################################
[redhat-8.0-i386]
name = Red Hat Linux 8.0
parent_channel = 
arch = i386
os_release = 8.0
description = Red Hat Linux 8.0
srpm_check = 0

rpm_dirs = /u/soft/current/paquetes/redhat-8.0/RPMS
           /u/soft/current/paquetes/updates-8.0/RPMS

src_dirs = /u/soft/current/paquetes/redhat-8.0/SRPMS
           /u/soft/current/paquetes/updates-8.0/SRPMS

############################################################################
[freshrpms-7.3-i386]
name = FreshRPMS para Red Hat Linux 7.3
parent_channel = redhat-7.3-i386
#arch = i386
#os_release = 7.3
description = Paquetes de FreshRPMS para Red Hat Linux 7.3
srpm_check = 0

rpm_dirs = /u/soft/current/paquetes/freshrpms-7.3/RPMS
src_dirs = 
#src_dirs = /u/soft/current/paquetes/freshrpms-7.3/SRPMS

############################################################################
[freshrpms-8.0-i386]
name = FreshRPMS para Red Hat Linux 8.0
parent_channel = redhat-8.0-i386
#arch = i386
#os_release = 8.0
description = Paquetes de FreshRPMS para Red Hat Linux 8.0
srpm_check = 0

rpm_dirs = /u/soft/current/paquetes/freshrpms-8.0/RPMS
src_dirs = 
#src_dirs = /u/soft/current/paquetes/freshrpms-8.0/SRPMS

Notes:
if I uncomment #arch & #os_release in subchannels, error change to:

feb 06 14:1601 : EXCEPTION in /usr/share/current/current_apache.py,
init_backend(), 90 [logException()]
Traceback (innermost last):
  File "/usr/share/current/current_apache.py", line 87, in init_backend
    packagedb.db.addChannel(chan_info)
  File "/usr/share/current/packagedb.py", line 63, in addChannel
    raise Exception('Cannot have two chans with same properties')
Exception: Cannot have two chans with same properties

cadmin info _the_name_of_subchannel don't show me arch or os_release.

It's a config error?

Thanks.

-- 
Ricardo Ariel Gorosito <[email protected]>