Bug 566887 - [abrt] "package-cleanup -C --orphans" crash
Summary: [abrt] "package-cleanup -C --orphans" crash
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:73165f78
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-20 07:47 UTC by Matt McCutchen
Modified: 2014-01-21 23:13 UTC (History)
4 users (show)

Fixed In Version: yum-utils-1.1.27-2.fc13
Clone Of:
Environment:
Last Closed: 2010-06-14 17:21:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.66 KB, text/plain)
2010-02-20 07:47 UTC, Matt McCutchen
no flags Details

Description Matt McCutchen 2010-02-20 07:47:46 UTC
abrt 1.0.6 detected a crash.

architecture: x86_64
Attached file: backtrace
cmdline: /usr/bin/python /usr/bin/package-cleanup -C --orphans
component: yum-utils
executable: /usr/bin/package-cleanup
kernel: 2.6.31.12-174.2.19.fc12.x86_64
package: yum-utils-1.1.25-1.fc12
release: Fedora release 12 (Constantine)

How to reproduce
-----
1. Delete any per-user yum cache at /var/tmp/yum-$USER-* .
2. package-cleanup -C --orphans

Comment 1 Matt McCutchen 2010-02-20 07:47:47 UTC
Created attachment 395223 [details]
File: backtrace

Comment 2 Tim Lauridsen 2010-05-02 08:47:43 UTC
I have added some exception catching in this commit

http://yum.baseurl.org/gitweb?p=yum-utils.git;a=commitdiff;h=c5aa6845f4b0cf6ffbc0e725b9cff108e1dd3d58

[tim@hoth yum-utils]$ rm -rf /var/tmp/yum-tim-uQtoiY/
[tim@hoth yum-utils]$ ./package-cleanup.py -C --orphans
Loaded plugins: presto, refresh-packagekit, remove-with-leaves
Error: Cannot access repository dir /var/tmp/yum-tim-bPtiE_/i386/13/adobe-linux-i386

So now it dont blowup but give you and error

The error is ok, because you cant use the cache if there is no cache, but maybe it should be a little better message.

Comment 3 Matt McCutchen 2010-05-06 03:28:56 UTC
(In reply to comment #2)
> The error is ok, because you cant use the cache if there is no cache

No, it should use the system-wide cache like "yum -C" does.

Comment 4 Fedora Update System 2010-06-06 13:45:12 UTC
yum-utils-1.1.27-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/yum-utils-1.1.27-1.fc13

Comment 5 Fedora Update System 2010-06-08 19:35:39 UTC
yum-utils-1.1.27-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update yum-utils'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/yum-utils-1.1.27-2.fc13

Comment 6 Fedora Update System 2010-06-14 17:20:34 UTC
yum-utils-1.1.27-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Matt McCutchen 2010-07-17 05:00:21 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > The error is ok, because you cant use the cache if there is no cache
> 
> No, it should use the system-wide cache like "yum -C" does.    

This is now bug 615559.


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