diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-09-13 05:12:55 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-09-13 05:12:55 +0000 |
commit | a1c37a3f1af76adf45b834ec7a67c1f93d3c37b8 (patch) | |
tree | 3f741fb7ed02fa0017db25051f748a3b82195174 /scripts/pythondeps | |
parent | d6597c99978740460247c43a953ea4d3027f00ff (diff) | |
download | anaconda-a1c37a3f1af76adf45b834ec7a67c1f93d3c37b8.tar.gz anaconda-a1c37a3f1af76adf45b834ec7a67c1f93d3c37b8.tar.xz anaconda-a1c37a3f1af76adf45b834ec7a67c1f93d3c37b8.zip |
first pass at getting some of the libdir stuff handled for multilib arches
just by grabbing the "right" files.
need to give some more thought to how to handle internally to anaconda
since we should be using libdir instead of just plopping in /usr/lib also
tagged prior to this as before_libdir_changes
Diffstat (limited to 'scripts/pythondeps')
-rw-r--r-- | scripts/pythondeps | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/pythondeps b/scripts/pythondeps index ad9a999a4..45e1c89c5 100644 --- a/scripts/pythondeps +++ b/scripts/pythondeps @@ -10,6 +10,12 @@ DIR=$1 ARCH=`uname -m | sed -e 's/i.86/i386/'` +if [ "$ARCH" = "x86_64" ]; then + LIBDIR=lib64 +else + LIBDIR=lib +endif + mkdir -p $DIR/proc mount -t proc /proc $DIR/proc if [ $ARCH = "sparc" -o $ARCH = "sparc64" ]; then @@ -18,7 +24,7 @@ if [ $ARCH = "sparc" -o $ARCH = "sparc64" ]; then <$DIR/dev/openprom fi (/usr/sbin/chroot $DIR /usr/bin/anaconda -m dir://mnt/source --test --text --traceonly; \ -cd $DIR; find usr/lib/python* usr/lib/anaconda usr/lib/booty -type f | sed 's,^,/,' ) | \ +cd $DIR; find usr/$LIBDIR/python* usr/lib/anaconda usr/lib/booty -type f | sed 's,^,/,' ) | \ sort | uniq -u | sed s,^,./, | while read fn; do [ ! -d "$DIR/$fn" ] && rm "$DIR/$fn" done |