Bug 915048 - --installroot not working
Summary: --installroot not working
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e741372ed52999d7ea622dfa90d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-24 12:51 UTC by Richard Marko
Modified: 2016-02-01 02:22 UTC (History)
3 users (show)

Fixed In Version: dnf-0.2.22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-12 23:24:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.34 KB, text/plain)
2013-02-24 12:51 UTC, Richard Marko
no flags Details
File: core_backtrace (488 bytes, text/plain)
2013-02-24 12:51 UTC, Richard Marko
no flags Details

Description Richard Marko 2013-02-24 12:51:29 UTC
Version-Release number of selected component:
dnf-0.2.21-1.git050524e.fc18

Additional info:
cmdline:        /usr/bin/python /bin/dnf --releasever=17 --nogpgcheck --installroot /root/fedora-tree/ install yum passwd vim-minimal rootfiles systemd
executable:     /bin/dnf
kernel:         3.7.8-202.fc18.x86_64
uid:            0

Truncated backtrace:
cli.py:1661:getRoot:TypeError: cannot concatenate 'str' and 'NoneType' objects

Traceback (most recent call last):
  File "/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 305, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 91, in main
    cli.configure(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1360, in configure
    root = self.optparser.getRoot(opts)
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1661, in getRoot
    if os.access(opts.installroot+'/'+opts.conffile, os.R_OK):
TypeError: cannot concatenate 'str' and 'NoneType' objects

Local variables in innermost frame:
self: <dnf.cli.cli.YumOptionParser instance at 0x15cdbd8>
opts: <Values at 0x15d24d0: {'verbose': None, 'errorlevel': None, 'color': None, 'disableexcludes': [], 'assumeno': None, 'conffile': None, 'exclude': [], 'rpmverbosity': None, 'enableplugins': [], 'best': None, 'disableplugins': [], 'sleeptime': None, 'repos_enabled': [], 'version': None, 'releasever': '17', 'obsoletes': None, 'debuglevel': None, 'cacheonly': None, 'showdupesfromrepos': None, 'assumeyes': None, 'installroot': '/root/fedora-tree/', 'quiet': None, 'nogpgcheck': None, 'repos_disabled': [], 'setopts': [], 'noplugins': None}>

Comment 1 Richard Marko 2013-02-24 12:51:33 UTC
Created attachment 701999 [details]
File: backtrace

Comment 2 Richard Marko 2013-02-24 12:51:35 UTC
Created attachment 702000 [details]
File: core_backtrace

Comment 3 Ales Kozumplik 2013-02-25 07:38:44 UTC
Reproduced, happens everytime I use --installroot.

Comment 4 Ales Kozumplik 2013-02-25 13:55:25 UTC
dnf commit 32acc24 makes --installroot work again.

Comment 5 Fedora Update System 2013-03-02 09:45:39 UTC
hawkey-0.3.8-1.git046ab1c.fc18, dnf-0.2.22-1.git97180b8.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/dnf-0.2.22-1.git97180b8.fc18,hawkey-0.3.8-1.git046ab1c.fc18

Comment 6 Fedora Update System 2013-03-03 22:44:38 UTC
Package hawkey-0.3.8-1.git046ab1c.fc18, dnf-0.2.22-1.git97180b8.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hawkey-0.3.8-1.git046ab1c.fc18 dnf-0.2.22-1.git97180b8.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3357/dnf-0.2.22-1.git97180b8.fc18,hawkey-0.3.8-1.git046ab1c.fc18
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-03-12 23:24:14 UTC
hawkey-0.3.8-1.git046ab1c.fc18, dnf-0.2.22-1.git97180b8.fc18 has been pushed to the Fedora 18 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.