1# const.py 2# dnf constants. 3# 4# Copyright (C) 2012-2015 Red Hat, Inc. 5# 6# This copyrighted material is made available to anyone wishing to use, 7# modify, copy, or redistribute it subject to the terms and conditions of 8# the GNU General Public License v.2, or (at your option) any later version. 9# This program is distributed in the hope that it will be useful, but WITHOUT 10# ANY WARRANTY expressed or implied, including the implied warranties of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 12# Public License for more details. You should have received a copy of the 13# GNU General Public License along with this program; if not, write to the 14# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 15# 02110-1301, USA. Any Red Hat trademarks that are incorporated in the 16# source code or documentation are not subject to the GNU General Public 17# License and may only be used or replicated with the express permission of 18# Red Hat, Inc. 19# 20 21from __future__ import unicode_literals 22 23CONF_FILENAME='/etc/dnf/dnf.conf' # :api 24CONF_AUTOMATIC_FILENAME='/etc/dnf/automatic.conf' 25DISTROVERPKG=('system-release(releasever)', 'system-release', 26 'distribution-release(releasever)', 'distribution-release', 27 'redhat-release', 'suse-release') 28GROUP_PACKAGE_TYPES = ('mandatory', 'default', 'conditional') # :api 29INSTALLONLYPKGS=['kernel', 'kernel-PAE', 30 'installonlypkg(kernel)', 31 'installonlypkg(kernel-module)', 32 'installonlypkg(vm)', 33 'multiversion(kernel)'] 34LOG='dnf.log' 35LOG_HAWKEY='hawkey.log' 36LOG_LIBREPO='dnf.librepo.log' 37LOG_MARKER='--- logging initialized ---' 38LOG_RPM='dnf.rpm.log' 39NAME='DNF' 40PERSISTDIR='/var/lib/dnf' # :api 41PID_FILENAME = '/var/run/dnf.pid' 42RUNDIR='/run' 43USER_RUNDIR='/run/user' 44SYSTEM_CACHEDIR='/var/cache/dnf' 45TMPDIR='/var/tmp/' 46# CLI verbose values greater or equal to this are considered "verbose": 47VERBOSE_LEVEL=6 48 49PREFIX=NAME.lower() 50PROGRAM_NAME=NAME.lower() # Deprecated - no longer used, Argparser prints program name based on sys.argv 51PLUGINCONFPATH = '/etc/dnf/plugins' # :api 52PLUGINPATH = '@PYTHON_INSTALL_DIR@/dnf-plugins' 53VERSION='@DNF_VERSION@' 54USER_AGENT = "dnf/%s" % VERSION 55 56BUGTRACKER_COMPONENT=NAME.lower() 57BUGTRACKER='https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=%s' % BUGTRACKER_COMPONENT 58