index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2010-05-17 18:47:30 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-05-17 18:47:30 -0500 |
commit | a6ace987a913852af30bb5e3ae6bf145dc9c6157 (patch) | |
tree | bab1c477eda951edf1c9ea51103ae3b0f23060f2 /pactest/util.py | |
parent | 3a85f83840888cbab09f2413fa3eb7c3b71055e5 (diff) |
-rwxr-xr-x | pactest/util.py | 13 |
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)) |