diff options
| author | Vratislav Podzimek <vpodzime@redhat.com> | 2013-01-29 14:33:33 +0100 |
|---|---|---|
| committer | Vratislav Podzimek <vpodzime@redhat.com> | 2013-02-01 21:04:08 +0100 |
| commit | 56787f6a49174b14ed9e916d6e022c53305f716c (patch) | |
| tree | 3114ac009b12ec2f4c94dddab4fe6793a690e46e /scripts/makeupdates | |
| parent | d9237611208f0a9b030e5e549b2938c7c87ce48e (diff) | |
| download | anaconda-56787f6a49174b14ed9e916d6e022c53305f716c.tar.gz anaconda-56787f6a49174b14ed9e916d6e022c53305f716c.tar.xz anaconda-56787f6a49174b14ed9e916d6e022c53305f716c.zip | |
Fix including _isys.so and isys/__init__.py in updates.img
We need _isys.so in the $UPDATES/pyanaconda/isys so that it can be imported
from the updated $UPDATES/pyanaconda/isys/__init__.py module. Also we need
both these files in $UPDATES/pyanaconda/isys if either of them changed.
Diffstat (limited to 'scripts/makeupdates')
| -rwxr-xr-x | scripts/makeupdates | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/makeupdates b/scripts/makeupdates index c69cd0a22..21b25ecd3 100755 --- a/scripts/makeupdates +++ b/scripts/makeupdates @@ -201,7 +201,7 @@ def _compilableChanged(tag, compilable): continue if file.startswith('Makefile') or file.endswith('.h') or \ - file.endswith('.c'): + file.endswith('.c') or file.endswith('.py'): return True return False @@ -227,11 +227,18 @@ def copyUpdatedIsys(updates, cwd): # $updatedir/run/install/updates. tmpupdates = updates.rstrip('/') if not tmpupdates.endswith("/run/install/updates/pyanaconda"): - tmpupdates = os.path.join(tmpupdates, "run/install/updates/pyanaconda") + tmpupdates = os.path.join(tmpupdates, "run/install/updates/pyanaconda/isys") + + if not os.path.isdir(tmpupdates): + os.makedirs(tmpupdates) isysmodule = os.path.realpath(cwd + '/pyanaconda/isys/.libs/_isys.so') + isysinit = os.path.realpath(cwd + '/pyanaconda/isys/__init__.py') + if os.path.isfile(isysmodule): shutil.copy2(isysmodule, tmpupdates) + if os.path.isfile(isysinit): + shutil.copy2(isysinit, tmpupdates) def copyUpdatedWidgets(updates, cwd): os.chdir(cwd) |
