2015-02-10 13:19:34 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
2007-09-12 18:36:28 +00:00
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Library General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
2015-02-10 13:19:34 +00:00
|
|
|
|
2007-09-12 18:36:28 +00:00
|
|
|
import os
|
|
|
|
import time
|
|
|
|
import yum
|
|
|
|
|
|
|
|
from ConfigParser import SafeConfigParser
|
|
|
|
|
2015-02-10 13:19:34 +00:00
|
|
|
|
2007-09-12 18:36:28 +00:00
|
|
|
class Config(SafeConfigParser):
|
|
|
|
def __init__(self):
|
|
|
|
SafeConfigParser.__init__(self)
|
|
|
|
|
2008-12-04 23:44:34 +00:00
|
|
|
self.add_section('pungi')
|
2014-12-08 23:04:10 +00:00
|
|
|
self.add_section('lorax')
|
2007-09-12 18:36:28 +00:00
|
|
|
|
2008-12-04 23:44:34 +00:00
|
|
|
self.set('pungi', 'osdir', 'os')
|
|
|
|
self.set('pungi', 'sourcedir', 'source')
|
|
|
|
self.set('pungi', 'debugdir', 'debug')
|
|
|
|
self.set('pungi', 'isodir', 'iso')
|
2015-02-12 00:13:23 +00:00
|
|
|
self.set('pungi', 'multilibconf', '/usr/share/pungi/multilib/')
|
2015-02-28 05:13:47 +00:00
|
|
|
self.set('pungi', 'relnotefilere', 'LICENSE README-BURNING-ISOS-en_US.txt ^RPM-GPG')
|
2008-12-04 23:44:34 +00:00
|
|
|
self.set('pungi', 'relnotedirre', '')
|
2015-02-28 05:13:47 +00:00
|
|
|
self.set('pungi', 'relnotepkgs', 'fedora-repos fedora-release fedora-release-notes')
|
2008-12-04 23:44:34 +00:00
|
|
|
self.set('pungi', 'product_path', 'Packages')
|
|
|
|
self.set('pungi', 'cachedir', '/var/cache/pungi')
|
2014-04-28 19:56:34 +00:00
|
|
|
self.set('pungi', 'compress_type', 'xz')
|
2012-12-22 08:23:42 +00:00
|
|
|
self.set('pungi', 'arch', yum.rpmUtils.arch.getBaseArch())
|
2015-02-28 05:13:47 +00:00
|
|
|
self.set('pungi', 'family', 'Fedora')
|
2008-12-04 23:44:34 +00:00
|
|
|
self.set('pungi', 'iso_basename', 'Fedora')
|
|
|
|
self.set('pungi', 'version', time.strftime('%Y%m%d', time.localtime()))
|
2015-02-28 05:13:47 +00:00
|
|
|
self.set('pungi', 'variant', '')
|
2008-12-04 23:44:34 +00:00
|
|
|
self.set('pungi', 'destdir', os.getcwd())
|
2014-07-23 12:41:10 +00:00
|
|
|
self.set('pungi', 'workdirbase', "/work")
|
2008-12-04 23:44:34 +00:00
|
|
|
self.set('pungi', 'bugurl', 'https://bugzilla.redhat.com')
|
|
|
|
self.set('pungi', 'cdsize', '695.0')
|
|
|
|
self.set('pungi', 'debuginfo', "True")
|
2011-02-10 20:30:02 +00:00
|
|
|
self.set('pungi', 'alldeps', "True")
|
2011-05-16 22:59:23 +00:00
|
|
|
self.set('pungi', 'isfinal', "False")
|
2012-02-09 20:44:37 +00:00
|
|
|
self.set('pungi', 'nohash', "False")
|
2011-11-01 15:21:58 +00:00
|
|
|
self.set('pungi', 'full_archlist', "False")
|
2012-11-26 07:32:01 +00:00
|
|
|
self.set('pungi', 'multilib', '')
|
2012-10-25 12:47:19 +00:00
|
|
|
self.set('pungi', 'lookaside_repos', '')
|
2013-01-21 08:53:32 +00:00
|
|
|
self.set('pungi', 'resolve_deps', "True")
|
2014-07-18 19:30:52 +00:00
|
|
|
self.set('pungi', 'no_dvd', "False")
|
2014-12-22 20:07:24 +00:00
|
|
|
self.set('pungi', 'nomacboot', "False")
|