Bug 428516

Summary: Unable to upgrade software to latest release (version) via pirut
Product: [Fedora] Fedora Reporter: john posey <ventura.progress>
Component: pirutAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 8CC: james.antill
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-05 15:47:41 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 235706    

Description john posey 2008-01-12 13:33:06 EST
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-12 22:34:34 EST
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 15:47:41 EST
Fixed in git; will be in pirut-1.3.31