Bug 428516 - Unable to upgrade software to latest release (version) via pirut
Summary: Unable to upgrade software to latest release (version) via pirut
Alias: None
Product: Fedora
Classification: Fedora
Component: pirut   
(Show other bugs)
Version: 8
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: F9Blocker
TreeView+ depends on / blocked
Reported: 2008-01-12 18:33 UTC by john posey
Modified: 2008-02-05 20:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-02-05 20:47:41 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description john posey 2008-01-12 18:33:06 UTC
Description of problem:
Unable to run PUP to upgrade OS and components

Version-Release number of selected component (if applicable):
$ uname -a
Linux #1 SMP Fri Dec 7 15:49:36 EST 2007 x86_64 x86_64 x86_64


How reproducible:
Run process to upgrade to latest version of Fedora 8

Steps taken too Reproduce:
1. Initial run of PUP (As software upgrader), error occurs. Captured.
2. Reboot and rerun PUP (As software upgrader) and error re-occurs.
3. Run PUP (As Add/Remove Software) to remove Package Upgrader.  
4. When to Fedora site to retrieve latest version of PUP 
                                        (via upgrade sub-directory)
   a. Note system-config-printer- (dependent)

5. RPM --install to retore both pirut and system-config-printer (versions listed

6.  Ran PUP (as software upgrader) and error re-occurs.

Actual results:
1.  After de-install and re-installing the packages, the error didn't go away.

Expected results:

Additional info:
Error occurs after Package updater lists available updates available.

Component: pirut
Summary: TBd280403a miscutils.py:287:splitFilename:TypeError: 'NoneType' object
is unsubscriptable

Traceback (most recent call last):
  File "/usr/sbin/pup", line 611, in <module>
  File "/usr/sbin/pup", line 607, in main
  File "/usr/sbin/pup", line 447, in run
  File "/usr/sbin/pup", line 287, in doRefresh
  File "/usr/sbin/pup", line 369, in populateUpdates
    % (rpmUtils.miscutils.splitFilename(srpm)[0],),
  File "/usr/lib/python2.5/site-packages/rpmUtils/miscutils.py", line 287, in
    if filename[-4:] == '.rpm':
TypeError: 'NoneType' object is unsubscriptable

Local variables in innermost frame:
filename: None

Comment 1 john posey 2008-01-13 03:34:34 UTC
After downloading the source code for pirut (pirut-1.3.28-1.fc8.src.rpm) and
finding the statement where the error occurred and then following the code
proceeding this statement gave me a clue for a work around.  I noticed that srpm
was part of the if statement, after reviewing the repository manager screen, I
unchecked both the fedora source and updates-source check boxes. This worked. 
Software updater was able to proceed with the latest updates.   

Comment 2 Jeremy Katz 2008-02-05 20:47:41 UTC
Fixed in git; will be in pirut-1.3.31

Note You need to log in before you can comment on or make changes to this bug.