Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1285477 - Upgrading to Fedora 23 throws No such file or directory on symlinked mock config
Summary: Upgrading to Fedora 23 throws No such file or directory on symlinked mock config
Keywords:
Status: CLOSED DUPLICATE of bug 1277025
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmconf
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-25 17:04 UTC by Lukas Zapletal
Modified: 2015-11-26 14:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-26 14:48:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lukas Zapletal 2015-11-25 17:04:10 UTC
Traceback (most recent call last):
  File "/sbin/rpmconf", line 63, in <module>
    main()
  File "/sbin/rpmconf", line 60, in main
    rconf.run()
  File "/usr/lib/python3.4/site-packages/rpmconf/rpmconf.py", line 90, in run
    self._handle_package(pkg_hdr)
  File "/usr/lib/python3.4/site-packages/rpmconf/rpmconf.py", line 264, in _handle_package
    tmp.format(conf_file, "rpmnew"))
  File "/usr/lib/python3.4/site-packages/rpmconf/rpmconf.py", line 273, in _handle_rpmnew
    if filecmp.cmp(conf_file, other_file):
  File "/usr/lib64/python3.4/filecmp.py", line 51, in cmp
    s1 = _sig(os.stat(f1))
FileNotFoundError: [Errno 2] No such file or directory: '/etc/mock/default.cfg'

Everytime I do sudo rpmconf -a I get this error ^^^

Looks like after upgrade I got broken link: 

ll /etc/mock/default.cfg
lrwxrwxrwx 1 root root 20 Oct  8  2014 /etc/mock/default.cfg -> fedora-20-x86_64.cfg

Since this is a symlink, rpmconf could include this in the list of exceptions or handle it appropriately (re-symlink it perhaps)?

Comment 1 Miroslav Suchý 2015-11-26 14:48:31 UTC

*** This bug has been marked as a duplicate of bug 1277025 ***


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