diff options
author | Chris Lumens <clumens@redhat.com> | 2009-02-27 10:10:12 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-04 15:37:04 -0500 |
commit | 61b67230cbd20837cc4ac763bcaf56e1199f5cfe (patch) | |
tree | 8749e5e128bf8870cf1109fbc07a9cefaa0fc703 | |
parent | f00ec6b554eece6689e71c50ff0eb59ad2549b54 (diff) | |
download | anaconda-61b67230cbd20837cc4ac763bcaf56e1199f5cfe.tar.gz anaconda-61b67230cbd20837cc4ac763bcaf56e1199f5cfe.tar.xz anaconda-61b67230cbd20837cc4ac763bcaf56e1199f5cfe.zip |
Update packaging and makefile system for the new booty module.
-rw-r--r-- | Makefile | 4 | ||||
-rwxr-xr-x | anaconda | 6 | ||||
-rw-r--r-- | anaconda.spec | 3 | ||||
-rw-r--r-- | booty/Makefile | 33 | ||||
-rwxr-xr-x | runpychecker.sh | 4 | ||||
-rwxr-xr-x | scripts/upd-instroot | 3 |
6 files changed, 39 insertions, 14 deletions
@@ -23,7 +23,7 @@ VERSION := $(shell awk '/Version:/ { print $$2 }' anaconda.spec) RELEASE := $(shell awk '/Release:/ { print $$2 }' anaconda.spec) CVSROOT ?= ${CVSROOT:-$(shell cat CVS/Root 2>/dev/null)} -SUBDIRS = isys loader po \ +SUBDIRS = isys loader po booty \ textw utils scripts bootdisk installclasses \ iw pixmaps command-stubs ui docs # fonts aren't on s390/s390x @@ -40,7 +40,7 @@ ifneq (,$(filter i386 x86_64,$(ARCH))) SUBDIRS += gptsync endif -PYCHECKERPATH=isys:textw:iw:installclasses:/usr/lib/booty:/usr/share/system-config-date +PYCHECKERPATH=isys:textw:iw:installclasses:/usr/share/system-config-date PYCHECKEROPTS=-F pycheckrc-for-anaconda CATALOGS = po/anaconda.pot @@ -352,12 +352,6 @@ def setupPythonPath(): sys.path.insert(1, '/usr/lib/anaconda/textw') sys.path.insert(2, '/usr/lib/anaconda/iw') - if (os.path.exists('booty')): - sys.path.append('booty') - sys.path.append('booty/edd') - else: - sys.path.append('/usr/lib/booty') - sys.path.append('/usr/share/system-config-date') def addPoPath(dir): diff --git a/anaconda.spec b/anaconda.spec index c581e907f..21a2071bf 100644 --- a/anaconda.spec +++ b/anaconda.spec @@ -43,7 +43,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %define pythoncryptsetupver 0.0.6 BuildRequires: audit-libs-devel -BuildRequires: booty BuildRequires: bzip2-devel BuildRequires: device-mapper-devel >= %{dmver} BuildRequires: e2fsprogs-devel >= %{e2fsver} @@ -84,7 +83,6 @@ Requires: policycoreutils Requires: rpm-python >= %{rpmpythonver} Requires: comps-extras Requires: rhpl >= %{rhplver} -Requires: booty Requires: parted >= %{partedver} Requires: pyparted >= %{pypartedver} Requires: yum >= %{yumver} @@ -146,6 +144,7 @@ Obsoletes: anaconda-images <= 10 Provides: anaconda-images = %{version}-%{release} Obsoletes: anaconda-runtime < %{version}-%{release} Provides: anaconda-runtime = %{version}-%{release} +Obsoletes: booty %description The anaconda package contains the program which was used to install your diff --git a/booty/Makefile b/booty/Makefile new file mode 100644 index 000000000..1730985e2 --- /dev/null +++ b/booty/Makefile @@ -0,0 +1,33 @@ +# +# Makefile +# +# Copyright (C) 2009 Red Hat, Inc. All rights reserved. +# +# 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; either version 2 of the License, or +# (at your option) any later version. +# +# 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +include ../Makefile.inc + +all: + echo "nothing to make" + +install: + mkdir -p $(DESTDIR)/$(PYTHONLIBDIR)/booty + install -p -m 644 *.py $(DESTDIR)/$(PYTHONLIBDIR)/booty + ../py-compile --basedir $(DESTDIR)/$(PYTHONLIBDIR)/booty $(DESTDIR)/$(PYTHONLIBDIR)/booty/*.py + +clean: + rm -f *.o *.so *.pyc + +depend: diff --git a/runpychecker.sh b/runpychecker.sh index 2a330ef85..033017493 100755 --- a/runpychecker.sh +++ b/runpychecker.sh @@ -37,7 +37,7 @@ if [ "`tail -c 1 pychecker-false-positives`" == "`echo`" ]; then exit 1 fi -export PYTHONPATH="isys:textw:iw:installclasses:/usr/lib/booty:/usr/share/system-config-date" +export PYTHONPATH="isys:textw:iw:installclasses:/usr/share/system-config-date" pychecker --only --limit 1000 \ --maxlines 500 --maxargs 20 --maxbranches 80 --maxlocals 60 --maxreturns 20 \ @@ -45,7 +45,7 @@ pychecker --only --limit 1000 \ --no-import --no-miximport --no-pkgimport --no-reimport \ --no-argsused --no-varargsused --no-override \ $NON_STRICT_OPTIONS \ - anaconda anaconda *.py textw/*.py iw/*.py installclasses/*.py isys/*.py | \ + anaconda anaconda *.py textw/*.py iw/*.py installclasses/*.py isys/*.py booty/*.py booty/*/*.py | \ egrep -v "`cat $FALSE_POSITIVES | tr '\n' '|'`" > pychecker-log if [ -s pychecker-log ]; then diff --git a/scripts/upd-instroot b/scripts/upd-instroot index a26a5231e..b7dfca23f 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -152,7 +152,7 @@ die () { PACKAGES="GConf2 NetworkManager ORBit2 PolicyKit acl anaconda anaconda-yum-plugins at-spi atk attr audit-libs bash bitmap-fonts-cjk - booty btrfs-progs busybox-anaconda bzip2 bzip2-libs cairo cjkunifonts-uming + btrfs-progs busybox-anaconda bzip2 bzip2-libs cairo cjkunifonts-uming comps-extras coreutils cpio cracklib cracklib-dicts cracklib-python cryptsetup-luks db4 dbus dbus-python dejavu-sans-fonts dejavu-sans-mono-fonts device-mapper @@ -496,7 +496,6 @@ usr/lib/anaconda-runtime usr/lib/anaconda/installclasses usr/lib/anaconda/iw usr/lib/anaconda/textw -usr/lib/booty usr/lib/kernel-wrapper usr/lib/locale usr/lib/python?.?/site-packages/bugzilla* |