diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-02-13 12:29:21 -0500 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-02-14 17:18:29 -0500 |
commit | ee12bdfeef8d84ebbc3cf4237f10428024f57116 (patch) | |
tree | 9be6dd5ff24f28ee4b9f7559e20d2aee4cc706af /scripts | |
parent | f92adf205b77e5229acf295aa4db2d94ab42e9c2 (diff) | |
download | anaconda-ee12bdfeef8d84ebbc3cf4237f10428024f57116.tar.gz anaconda-ee12bdfeef8d84ebbc3cf4237f10428024f57116.tar.xz anaconda-ee12bdfeef8d84ebbc3cf4237f10428024f57116.zip |
Don't do fixmtimes anymore
squashfs doesn't do the 0 mtime trick for compression, so stop "fixing" up
mtimes in pyc files
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile | 1 | ||||
-rwxr-xr-x | scripts/fixmtime.py | 61 | ||||
-rwxr-xr-x | scripts/upd-instroot | 5 |
3 files changed, 0 insertions, 67 deletions
diff --git a/scripts/Makefile b/scripts/Makefile index 6dd20e708..652ab7dd2 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -35,7 +35,6 @@ install: install -m 755 getkeymaps $(DESTDIR)/$(RUNTIMEDIR) install -m 755 makestamp.py $(DESTDIR)/$(RUNTIMEDIR) install -m 755 maketreeinfo.py $(DESTDIR)/$(RUNTIMEDIR) - install -m 755 fixmtime.py $(DESTDIR)/$(RUNTIMEDIR) install -m 755 yumcache $(DESTDIR)/$(RUNTIMEDIR) install -m 755 pyrc.py $(DESTDIR)/$(RUNTIMEDIR) install -m 755 upd-updates $(DESTDIR)/$(RUNTIMEDIR) diff --git a/scripts/fixmtime.py b/scripts/fixmtime.py deleted file mode 100755 index 92fbf9898..000000000 --- a/scripts/fixmtime.py +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/python -# -# fixmtime.py -# -# Copyright (C) 2007 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/>. -# - -"""Walks path given on the command line for .pyc and .pyo files, changing -the mtime in the header to 0, so it will match the .py file on the cramfs""" - -import os -import sys -import getopt - -debug = 0 - -def usage(): - print 'usage: %s /path/to/walk/and/fix' %sys.argv[0] - sys.exit(1) - -def visit(arg, d, files): - for filen in files: - if not (filen.endswith('.pyc') or filen.endswith('.pyo')): - continue - path = os.sep.join((d, filen)) - #print 'fixing mtime', path - f = open(path, 'r+') - f.seek(4) - f.write('\0\0\0\0') - f.close() - -if __name__ == '__main__': - (args, extra) = getopt.getopt(sys.argv[1:], '', "debug") - - if len(extra) < 1: - usage() - - for arg in args: - if arg == "--debug": - debug = 1 - - dir = extra[0] - - if not os.path.isdir(dir): - usage() - - os.path.walk(dir, visit, None) - diff --git a/scripts/upd-instroot b/scripts/upd-instroot index 2de74fb2c..d3ab88bea 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -915,11 +915,6 @@ rm -rf $yumconf $YUMDIR chown -R root:root $DEST $DESTGR chmod -R a+rX-w $DEST $DESTGR -# change mtimes to 0 (to match what happens on the cramfs) -for p in $DEST $DESTGR; do - $p/usr/lib/anaconda-runtime/fixmtime.py $DEBUG $p -done - # Remove locales unused during the install cat $DESTGR/usr/lib/anaconda/lang-table* | awk ' { gsub("-", "", $4); |