diff options
author | Dan McGee <dan@archlinux.org> | 2010-05-18 01:47:30 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-05-18 01:47:30 +0200 |
commit | a6ace987a913852af30bb5e3ae6bf145dc9c6157 (patch) | |
tree | bab1c477eda951edf1c9ea51103ae3b0f23060f2 /pactest/util.py | |
parent | 3a85f83840888cbab09f2413fa3eb7c3b71055e5 (diff) | |
download | pacman-a6ace987a913852af30bb5e3ae6bf145dc9c6157.tar.gz pacman-a6ace987a913852af30bb5e3ae6bf145dc9c6157.tar.xz |
Add some machinery to test the Include directive
After the previous patch that re-enabled its use outside of sync repository
sections which we had unintentionally disabled.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/util.py')
-rwxr-xr-x | pactest/util.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pactest/util.py b/pactest/util.py index da6d44e3..e01a3b8f 100755 --- a/pactest/util.py +++ b/pactest/util.py @@ -178,11 +178,14 @@ def mkcfgfile(filename, root, option, db): data.extend(["%s = %s" % (key, j) for j in value]) # Repositories - data.extend(["[%s]\n" \ - "Server = file://%s\n" \ - % (value.treename, \ - os.path.join(root, SYNCREPO, value.treename)) \ - for key, value in db.iteritems() if key != "local"]) + for key, value in db.iteritems(): + if key != "local": + data.append("[%s]\n" \ + "Server = file://%s" \ + % (value.treename, + os.path.join(root, SYNCREPO, value.treename))) + for optkey, optval in value.option.iteritems(): + data.extend(["%s = %s" % (optkey, j) for j in optval]) mkfile(os.path.join(root, filename), "\n".join(data)) |