Bug 244835

Summary: rpmlint traceback
Product: [Fedora] Fedora Reporter: Ralf Corsepius <rc040203>
Component: rpmlintAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.81-1.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-07 17:21:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ralf Corsepius 2007-06-19 13:23:15 UTC
Description of problem:
Current rpmlint is returning tracebacks if cwd doesn't exist.

Version-Release number of selected component (if applicable):
rpmlint-0.80-1.fc7

Steps to Reproduce:
1. mkdir tmp
2. cd tmp
3. rmdir ../tmp
4. rpmlint <package>.rpm
  
Actual results:

rpmlint
/var/ftp/pub/linux/mirrors/download.fedora.redhat.com/pub/fedora/linux/updates/7/i386/agistudio-1.2.3-3.fc7.i386.rpm

shell-init: error retrieving current directory: getcwd: cannot access parent
directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent
directories: No such file or directory
E: agistudio zero-length /usr/share/agistudio/template/snddir
Traceback (most recent call last):
  File "/usr/share/rpmlint/rpmlint.py", line 270, in <module>
    main()
  File "/usr/share/rpmlint/rpmlint.py", line 92, in main
    runChecks(pkg)
  File "/usr/share/rpmlint/rpmlint.py", line 151, in runChecks
    c.check(pkg)
  File "/usr/share/rpmlint/BinariesCheck.py", line 148, in check
    info=pkg.getFilesInfo()
  File "/usr/share/rpmlint/Pkg.py", line 205, in getFilesInfo
    olddir = os.getcwd()
OSError: [Errno 2] No such file or directory


Expected results:
No traceback

Additional info:

Comment 1 Ville Skyttä 2007-06-20 20:33:21 UTC
Fixed upstream, will be in the next release:
http://rpmlint.zarb.org/cgi-bin/trac.cgi/changeset/1356

Comment 2 Fedora Update System 2007-09-07 17:21:37 UTC
rpmlint-0.81-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.