Bug 1320104 - Add option to use different repositories while building chroot environment
Summary: Add option to use different repositories while building chroot environment
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: retrace-server
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: abrt
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1292556
TreeView+ depends on / blocked
 
Reported: 2016-03-22 10:27 UTC by Lukas Herbolt
Modified: 2020-02-18 11:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lukas Herbolt 2016-03-22 10:27:02 UTC
Description of problem:
Current release uses one big repository which contains all the packages and debug info. We need option for mock/retrace to use existing repositories which are located in different directories.

Looking at the code:


# vim /usr/lib/python2.7/site-packages/retrace/retrace_worker.py
        # create mock config file
        try:
            with open(os.path.join(task.get_savedir(), RetraceTask.MOCK_DEFAULT_CFG), "w") as mockcfg:
                mockcfg.write("config_opts['root'] = '%d'\n" % task.get_taskid())
                mockcfg.write("config_opts['target_arch'] = '%s'\n" % arch)
                mockcfg.write("config_opts['chroot_setup_cmd'] = '--skip-broken install %s abrt-addon-ccpp shadow-utils gdb rpm'\n" % " ".join(packages))
...

}

So if I read it correctly the retrace will create config which is then passed to the mock over '--configdir'.

So we need to create config which will have multiple repositories.
Ping me if you need more details...

Lukas


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