Bug 1048584 - yum update-minimal --security doesn't work
Summary: yum update-minimal --security doesn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 20
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Valentina Mukhamedzhanova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1070879 (view as bug list)
Depends On:
Blocks: 1192239 1245134 1246026
TreeView+ depends on / blocked
 
Reported: 2014-01-05 14:12 UTC by Jorge Fábregas
Modified: 2015-11-18 11:05 UTC (History)
10 users (show)

Fixed In Version: yum-3.4.3-137.fc19
Clone Of:
: 1192239 (view as bug list)
Environment:
Last Closed: 2014-02-28 18:30:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jorge Fábregas 2014-01-05 14:12:00 UTC
Description of problem:

running "yum update-minimal --security" doesn't work.  See the below "Actual Results" section for error messages.  Thi is, of course, running as root.



Version-Release number of selected component (if applicable):

# rpm -qa | grep -i yum
PackageKit-yum-plugin-0.8.15-1.fc20.x86_64
yum-3.4.3-128.fc20.noarch
yum-langpacks-0.4.3-1.fc20.noarch
PackageKit-yum-0.8.15-1.fc20.x86_64
yum-metadata-parser-1.1.4-9.fc20.x86_64
yum-utils-1.1.31-19.fc20.noarch


How reproducible: 
always


Steps to Reproduce:
1. yum update-minimal --security
2.
3.

Actual results:

Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 355, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 174, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 570, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 4153, in doCommand
    _upi.update_minimal(base, extcmds)
  File "/usr/lib/python2.7/site-packages/yum/updateinfo.py", line 516, in update_minimal
    not _ysp_should_filter_pkg(base, name, notice, used_map)):
  File "/usr/lib/python2.7/site-packages/yum/updateinfo.py", line 67, in _ysp_should_filter_pkg
    rcmd = _match_sec_cmd(opts.sec_cmds, pkgname, notice)


Expected results:

A list of packages containing security fixes.

Additional info:

# yum update --security  
... works perfectly fine.

Comment 1 Kel Byers 2014-02-08 19:08:16 UTC
The same thing happens with 'yum update-minimal --bugfix'.

# rpm -qa | grep -i yum
yum-metadata-parser-1.1.4-9.fc20.x86_64
yum-3.4.3-132.fc20.noarch
yum-utils-1.1.31-20.fc20.noarch

# yum update-minimal --bugfix
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 355, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 174, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 570, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 4153, in doCommand
    _upi.update_minimal(base, extcmds)
  File "/usr/lib/python2.7/site-packages/yum/updateinfo.py", line 516, in update_minimal
    not _ysp_should_filter_pkg(base, name, notice, used_map)):
  File "/usr/lib/python2.7/site-packages/yum/updateinfo.py", line 67, in _ysp_should_filter_pkg
    rcmd = _match_sec_cmd(opts.sec_cmds, pkgname, notice)
AttributeError: 'YumBaseCli' object has no attribute 'sec_cmds'

Comment 2 Fedora Update System 2014-02-17 16:14:13 UTC
yum-3.4.3-137.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/FEDORA-2014-2482/yum-3.4.3-137.fc20

Comment 3 Fedora Update System 2014-02-17 16:32:06 UTC
yum-3.4.3-137.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/FEDORA-2014-2541/yum-3.4.3-137.fc19

Comment 4 Fedora Update System 2014-02-18 13:37:21 UTC
Package yum-3.4.3-137.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-3.4.3-137.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2541/yum-3.4.3-137.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-02-28 18:30:19 UTC
yum-3.4.3-137.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Valentina Mukhamedzhanova 2014-03-03 11:13:20 UTC
*** Bug 1070879 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2014-05-28 02:53:15 UTC
yum-3.4.3-137.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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