diff options
author | Sean Finney <seanius@debian.org> | 2009-07-26 13:24:58 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2009-07-26 13:24:58 +0200 |
commit | 58c3470acf8a2a4709160f14540b1dd56e6f61cd (patch) | |
tree | 3a00d868608b73e4234d0c241dc2b624a0f5de1d | |
parent | 2c752d78eb19da46dc8c6bb158581ad14a1f0f69 (diff) | |
download | patch-tracker-58c3470acf8a2a4709160f14540b1dd56e6f61cd.tar.gz |
pass the patch tracker root via PYTHONPATH to reprepro
the diffsonly.py script called via reprepro needs to know where
the patch tracker root is so that it can include configuration
options from the same central location.
-rwxr-xr-x | gen-patch-info.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gen-patch-info.py b/gen-patch-info.py index 259ec6c..5d7d899 100755 --- a/gen-patch-info.py +++ b/gen-patch-info.py @@ -26,8 +26,9 @@ if __name__ == '__main__': update_archive = True if update_archive: - os.system("reprepro -b %s --confdir reprepro/conf update"% - (Conf.archive_root,)) + os.system("env PYTHONPATH=%s reprepro -b %s --confdir reprepro/conf update"% + (os.path.dirname(os.path.realpath(sys.argv[0])), + Conf.archive_root,)) a = Archive(Conf.archive_root, suitefilter=suites, pkgfilter=packages) try: |