# HG changeset patch # User Christophe Lincoln # Date 1337906621 -7200 # Node ID 91bb16e4eb1631de572aa2868971742f40410e33 # Parent b84e0d36c9e0a5d174d9c852c0bdbb2512eca4eb spk-add: install local cross-compiled packages (they have -ARCH string) diff -r b84e0d36c9e0 -r 91bb16e4eb16 spk-add --- a/spk-add Fri May 25 02:41:36 2012 +0200 +++ b/spk-add Fri May 25 02:43:41 2012 +0200 @@ -98,6 +98,7 @@ separator gettext "Copying package..." cp $package_file $tmpdir && status + cd $tmpdir # Add package checksum to $installed.$SUM if [ "$verbose" ]; then @@ -113,7 +114,12 @@ # Extract Package #debug "extract_package $package_file $tmpdir" extract_package $package_file $tmpdir - tmpdir="$tmpdir/$PACKAGE-$VERSION" + + # Handle cross compiled packages + case "$SLITAZ_ARCH" in + arm|x86_64) arch="-${SLITAZ_ARCH}" ;; + esac + tmpdir="$tmpdir/$PACKAGE-${VERSION}${arch}" # Get files to remove if upgrading local files_to_remove