From 9d9c75b7666123273aeccd96248f1413c287b207 Mon Sep 17 00:00:00 2001 From: Sean Finney Date: Sun, 26 Jul 2009 19:35:16 +0200 Subject: initial support for PTS index file generation a new option (-i) to ./gen-patch-info.py allows for generating a global "index" file with any and all information that the PTS might want from this system. The format is: { "index-version": N "packages": { "": { "url": url-for-all-versions "versions": { "": { } } } } } index-version is a monotonically increasing version number. when the "schema" changes, this version is incremented. if we care enough, we can do a major-minor versioning scheme where BC breaks are differentiated from "new attribute" type changes by incrementing the major or minor versions, respectively. --- patchtracker/Conf.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'patchtracker/Conf.py') diff --git a/patchtracker/Conf.py b/patchtracker/Conf.py index beb2b71..954001e 100755 --- a/patchtracker/Conf.py +++ b/patchtracker/Conf.py @@ -16,6 +16,12 @@ use_apt_pkg = None to False instead of None """ +pts_index_file = "pts-index.json.gz" +""" The name of the JSON encoded "whole system index" that we can optionally + export (the -i option to gen-patch-info) for mass-grabbing of statistics + by the PTS system +""" + try: from localconfig import * except ImportError: -- cgit v1.2.3