X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fconfig.py;h=ed8cf1d0d0e7cb57b2ba0ff1fdffdd6922508e81;hb=e1156b3b857f5496a299e621d291cff0ba957d23;hp=b35ed9a9229e602fcbde3e51eda59a70b8f93b84;hpb=f0bfd37e7286156598d79b53501ebe2000bb7924;p=dak.git diff --git a/daklib/config.py b/daklib/config.py index b35ed9a9..ed8cf1d0 100755 --- a/daklib/config.py +++ b/daklib/config.py @@ -36,6 +36,13 @@ import socket default_config = "/etc/dak/dak.conf" #: default dak config, defines host properties +# suppress some deprecation warnings in squeeze related to apt_pkg +# module +import warnings +warnings.filterwarnings('ignore', ".*apt_pkg.* is deprecated.*", DeprecationWarning) + +################################################################################ + def which_conf_file(): return os.getenv("DAK_CONFIG", default_config)