Fixed mash directive
ClosedPublic

Authored by jskladan on Jun 17 2014, 10:55 AM.

Details

Summary

Mash directive created non-valid config for mash.

Test Plan

unittests work and the mash directive correctly uses mash to solve multilib

Diff Detail

Repository
rLTRN libtaskotron
Lint
Lint Skipped
Unit
Unit Tests Skipped
jskladan retitled this revision from to Fixed mash directive.Jun 17 2014, 10:55 AM
jskladan updated this object.
jskladan edited the test plan for this revision. (Show Details)
jskladan added reviewers: kparal, tflink.
jskladan updated this revision to Diff 417.Jun 17 2014, 11:01 AM

minor fix

kparal accepted this revision.Jun 17 2014, 11:01 AM

If you say it works...

This revision is now accepted and ready to land.Jun 17 2014, 11:01 AM
jskladan edited the test plan for this revision. (Show Details)Jun 17 2014, 11:01 AM
tflink accepted this revision.Jun 17 2014, 11:08 AM

I'm of a similar mind to @kparal. I don't quite understand the significance of the mash config changes but trust that it does what we need it to.

the output_dir and output_subdir are required (even set to nothing) in order for mash to work, there are lines like:

pkgdir = os.path.join(self.config.outputdir, self.config.output_subdir,-
                      self.config.rpm_path % {'arch':arch})
repodir = os.path.join(self.config.outputdir, self.config.output_subdir,-
                       self.config.repodata_path % {'arch':arch})

in the code, and if outputdir/output_subdir is not set, the default value is None and os.path.join fails on

  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/posixpath.py", line 75, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

The most significant change is the arches line, which needs to look like

arches = arch1 arch2 arch3
`

but in the previous patch, it looked like this

arches = ['arch1', 'arch2']

Thanks for the extra details. Still looks good to me

jskladan closed this revision.Jun 17 2014, 12:58 PM
jskladan updated this revision to Diff 419.

Closed by commit rLTRN7648ed2e280a (authored by @jskladan).