Login | Register
My pages Projects Community openCollabNet

Discussions > users > bug: 0 byte rpm

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Back to topic list

bug: 0 byte rpm

Reply

Author marafa
Full name Mohammed Arafa
Date 2006-07-05 00:18:10 PDT
Message hi
if u tell current to scan a directory with a 0 byte rpm in it, it will fail
with the following log:

Jul 05 10:12:48 Current v1.6.1 starting up
Jul 05 10:12:48 Inside Current main hander
Jul 05 10:12:48 Requesting: cadmin.scanChannels
Jul 05 10:12:48 method = cadmin.scanChannels
Jul 05 10:12:48 Dispatching: cadmin.scanChannels
Jul 05 10:12:49 Warning: Could not open package /var/spool/up2date/gftp-
2.0.17-5.x86_64.rpm
Jul 05 10:12:49 Database transaction aborted!
Jul 05 10:12:49 ERROR: Recognized function cadmin.scanChannels called with
wrong arg count or other TypeError exception occured
Jul 05 10:1249 : EXCEPTION in /usr/share/current/c​urrent_apache.py,
callAPIMethod(), 305 [logException()]
Traceback (most recent call last):
  File "/usr/share/current/​current_apache.py", line 299, in callAPIMethod
    result = apply(func, params)
  File "/usr/share/current/​api/cadmin.py", line 39, in scanChannels
    result[chan] = db.db.updateChannel(chan)
  File "/usr/share/current/​db/currentdb.py", line 163, in updateChannel
    result['addedrpms'] = self._addRpms(channel, added_rpms)
  File "/usr/share/current/​db/currentdb.py", line 327, in _addRpms
    pkg_id = self._insertPackageT​able(header)
  File "/usr/share/current/​db/currentdb.py", line 400, in
_insertPackageTable
    package_id = self._getPackageId(h​eader[RPM.NAME], header[RPM.VERSION],
  File "/usr/share/current/RPM.py", line 70, in __getitem__
    return self.hdr[item]
TypeError: unsubscriptable object
Jul 05 10:12:49 Fault: <Fault 1000: u'Function scanChannels called with
wrong arg count'>
Jul 05 10:12:49 sendClientResult() finished


when i did an ls -l on the file it showed the file size was zero.
Attachments

« Previous message in topic | 1 of 3 | Next message in topic »

Messages

Show all messages in topic

bug: 0 byte rpm marafa Mohammed Arafa 2006-07-05 00:18:10 PDT
     Re: bug: 0 byte rpm darwinscusp Drew Myers 2006-07-05 09:11:00 PDT
         Re: bug: 0 byte rpm theslack Jack Neely 2006-07-07 19:52:05 PDT
Messages per page: