X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=apt-p2p.py;h=8d69b06faee658b52c2fdade8455d0b85b634b15;hp=911dfce162bfd55d0cbc19097a77ee00a285a77a;hb=c14ca771c67c88699e7b4eb065d834976e4711ba;hpb=872f3e24afa2a8a23956d1c191520a7f699ac8c6 diff --git a/apt-p2p.py b/apt-p2p.py index 911dfce..8d69b06 100644 --- a/apt-p2p.py +++ b/apt-p2p.py @@ -16,7 +16,7 @@ from twisted.application import service, internet, app, strports from twisted.internet import reactor from twisted.python import usage, log -from apt_p2p.apt_p2p_conf import config, version, DEFAULT_CONFIG_FILES +from apt_p2p.apt_p2p_conf import config, version, versionID, DEFAULT_CONFIG_FILES from apt_p2p.interfaces import IDHT, IDHTStatsFactory config_file = '' @@ -53,6 +53,7 @@ if __name__ == '__main__': log.msg("Loading config files: '%s'" % "', '".join(DEFAULT_CONFIG_FILES + [config_file])) config_read = config.read(DEFAULT_CONFIG_FILES + [config_file]) +config.set(config.get('DEFAULT', 'DHT'), 'VERSION', versionID) log.msg("Successfully loaded config files: '%s'" % "', '".join(config_read)) try: uid,gid = pwd.getpwnam(config.get('DEFAULT', 'USERNAME'))[2:4]