Bug 826096
Summary: | tmprepo does not work with --disablerepo=* | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Patrik Kis <pkis> |
Component: | yum-utils | Assignee: | James Antill <james.antill> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Karel Srot <ksrot> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | jzeleny, ksrot |
Target Milestone: | beta | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | yum-3.4.3-96 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-13 12:48:51 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Patrik Kis
2012-05-29 15:14:13 UTC
Ordering issue. checkEnabledRepo() runs before prereposetup_hook. commit 60953ca6769a6dfda09d698ed26d7624dc7264a4 Author: Zdenek Pavlas <zpavlas> Date: Wed Jun 5 15:47:22 2013 +0200 checkEnabledRepo: run prereposetup if necessary. BZ 826096 Workaround should now be in f19/RHEL-7. # rpm -q yum yum-3.4.3-100.el7.noarch # yum --disablerepo=\* --tmprepo=/etc/yum.repos.d/update-to-test.repo install update-to-test-pkg Loaded plugins: langpacks, product-id, subscription-manager, tmprepo This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Repository 'dyninst' is missing name in configuration, using id Repository 'rhel7' is missing name in configuration, using id Repository 'rhel7-optional' is missing name in configuration, using id Repo update-to-test tried to set gpgcheck=false There are no enabled repos. Run "yum repolist all" to see the repos you have. You can enable repos with yum-config-manager --enable <repo> # yum --disablerepo=\* --enablerepo=update-to-test install update-to-test-pkg Loaded plugins: langpacks, product-id, subscription-manager, tmprepo This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Repository 'dyninst' is missing name in configuration, using id Repository 'rhel7' is missing name in configuration, using id Repository 'rhel7-optional' is missing name in configuration, using id Resolving Dependencies --> Running transaction check ---> Package update-to-test-pkg.noarch 0:1.0-5 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: update-to-test-pkg noarch 1.0-5 update-to-test 1.5 k Transaction Summary ================================================================================ Install 1 Package Total download size: 1.5 k Installed size: 0 Is this ok [y/d/N]: Exiting on user command Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx.2013-07-12.15-54.QmKX0e.yumtx "yum repolist" does not need to have enabled repos.. Does it list the update-to-test repo?
# yum --disablerepo=\* --tmprepo=/etc/yum.repos.d/update-to-test.repo repolist
> Repo update-to-test tried to set gpgcheck=false
Oh, I've missed this.. that might be the root reason, why tmprepo does not enable it.. Please add gpgcheck=true to /etc/yum.repos.d/update-to-test.repo and test again, thanks!
(In reply to Zdeněk Pavlas from comment #9) > > Repo update-to-test tried to set gpgcheck=false > > Oh, I've missed this.. that might be the root reason, why tmprepo does not > enable it.. Please add gpgcheck=true to /etc/yum.repos.d/update-to-test.repo > and test again, thanks! It works fine with gpgcheck=true. Not with gpgcheck=false. > Status: ASSIGNED → ON_QA Why? When you pass a .repo file to the --tmprepo option, the plugin checks that this repo does not disable gpgcheck. If it does, the repo is not enabled, and hence install fails (no enabled repos). I don't know the exact reason, but it's intentional. If you *dont* want this beahvioir, it can be disabled in tmprepo.conf (pkgs_gpgcheck=False). IMO, if the test case works with tmprepo.conf:pkgs_gpgcheck=False OR with update-to-test.repo:gpgcheck=True, the bugfix is verified. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |