summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-12-01 09:29:06 +0000
committerRichard Purdie <richard@openedhand.com>2006-12-01 09:29:06 +0000
commitbc4de141cb5da85c70acc605cd15b3d97b5f22ee (patch)
tree5347afb48e35fbb1638e92ae14c4d2b9a27d9258 /meta/classes
parent37669af82c8a4fd5ee7d04edb06ad654b8446e82 (diff)
downloadopenembedded-core-bc4de141cb5da85c70acc605cd15b3d97b5f22ee.tar.gz
openembedded-core-bc4de141cb5da85c70acc605cd15b3d97b5f22ee.tar.bz2
openembedded-core-bc4de141cb5da85c70acc605cd15b3d97b5f22ee.zip
rootfs_deb.bbclass: Add sanity check
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@991 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rootfs_deb.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
index 461b8bc939..533eaab4d1 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -102,7 +102,9 @@ fakeroot rootfs_deb_do_rootfs () {
# Hacks to make dpkg/ipkg coexist for now
mv ${IMAGE_ROOTFS}/var/dpkg ${IMAGE_ROOTFS}/usr/
- rmdir ${IMAGE_ROOTFS}/usr/dpkg/alternatives
+ if [ -e ${IMAGE_ROOTFS}/usr/dpkg/alternatives ]; then
+ rmdir ${IMAGE_ROOTFS}/usr/dpkg/alternatives
+ fi
ln -s /usr/lib/ipkg/alternatives ${IMAGE_ROOTFS}/usr/dpkg/alternatives
ln -s /usr/dpkg/info ${IMAGE_ROOTFS}/usr/lib/ipkg/info
ln -s /usr/dpkg/status ${IMAGE_ROOTFS}/usr/lib/ipkg/status