summaryrefslogtreecommitdiffstats
path: root/scripts/makeupdates
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2010-07-07 10:48:36 +0200
committerAles Kozumplik <akozumpl@redhat.com>2010-07-08 19:30:10 +0200
commit27cccdb30f65048420112f79172f794a313b0cdb (patch)
treebf85866221f0cbc7c291c4df290580cd8cc93961 /scripts/makeupdates
parent7e83593ae3be280dac5cbdf61469a19e6c38b1ae (diff)
makeupdates: treat files under pyanaconda/ individually.
instead of just copying over the entire pyanaconda/. we can afford doing this now for two reasons: 1) anaconda:setupPythonUpdates() symlinks remaining files and directories. 2) booty/ and isys/ are now correctly under pyanaconda.
Diffstat (limited to 'scripts/makeupdates')
-rwxr-xr-xscripts/makeupdates30
1 files changed, 11 insertions, 19 deletions
diff --git a/scripts/makeupdates b/scripts/makeupdates
index b91e785e7..e0aaa39ed 100755
--- a/scripts/makeupdates
+++ b/scripts/makeupdates
@@ -121,27 +121,19 @@ def copyUpdatedFiles(tag, updates, cwd):
file.endswith('.sh') or file == 'configure.ac':
continue
- if file.find('/') != -1:
+ if file.startswith('pyanaconda/'):
+ sys.stdout.write("Including %s\n" % (file,))
+ update_filename = os.path.realpath(os.path.join(updates, file))
+ update_dir = os.path.dirname(update_filename)
+ if not os.path.isdir(update_dir):
+ os.makedirs(update_dir)
+ shutil.copy2(file, update_dir)
+ elif file.find('/') != -1:
fields = file.split('/')
subdir = fields[0]
-
- if subdir in ['booty', 'isys', 'pyanaconda']:
- subupdates = os.path.realpath(updates + '/' + subdir)
- if os.path.isdir(subupdates):
- shutil.rmtree(subupdates)
-
- if not subdir in subdirs:
- sys.stdout.write("Including %s/\n" % (subdir,))
- subdirs.append(subdir)
-
- shutil.copytree(os.path.realpath(cwd + '/' + subdir),
- subupdates, ignore=pruneFile)
- elif subdir == 'loader' or subdir == 'po' or \
- subdir =='scripts' or subdir == 'command-stubs' or \
- subdir == 'tests' or subdir == 'bootdisk' or \
- subdir == 'docs' or subdir == 'fonts' or \
- subdir == 'utils' or subdir == 'gptsync' or \
- subdir == 'liveinst':
+ if subdir in ['loader', 'po', 'scripts','command-stubs', 'tests',
+ 'bootdisk', 'docs', 'fonts', 'utils', 'gptsync',
+ 'liveinst']:
continue
else:
sys.stdout.write("Including %s\n" % (file,))