osbuild: unified libdir handling

Change the default of libdir to /usr/lib/osbuild and
remove redundant logic. Additionally, change how the
python package is detected.

Instead of checking if libdir is None, check if
/usr/lib/osbuild is empty - i.e. if the user has specified
a different directory than the default.
This commit is contained in:
chloenayon 2020-07-31 12:57:37 +02:00 committed by David Rheinsberg
parent f92a00b891
commit 1e3c0aea1b
4 changed files with 17 additions and 19 deletions

View file

@ -93,7 +93,7 @@ class TestDescriptions(unittest.TestCase):
for p in [data, cache, output]:
p.mkdir()
res = asm.run(data, runner, root, monitor, output, libdir)
res = asm.run(data, runner, root, monitor, libdir, output)
self.assertEqual(res.success, True)
self.assertEqual(res.id, asm.id)