From 58c3470acf8a2a4709160f14540b1dd56e6f61cd Mon Sep 17 00:00:00 2001 From: Sean Finney Date: Sun, 26 Jul 2009 13:24:58 +0200 Subject: 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. --- gen-patch-info.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gen-patch-info.py') 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: -- cgit v1.2.3