X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fconfig.py;h=ed8cf1d0d0e7cb57b2ba0ff1fdffdd6922508e81;hb=3b0114ce123dc45186d02045233510b777a01b02;hp=b35ed9a9229e602fcbde3e51eda59a70b8f93b84;hpb=a505b3117327b9b8fbcd587b65f332efe8a7cd07;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)