[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

live-build - fix for "installing aptitude"



Hi,
when i try to configure live system with
--apt aptitude
I can't build image without the patch for live-build (git) attached below ...


[[
diff --git a/scripts/build/bootstrap_archives b/scripts/build/bootstrap_archives
index f5816e2..1437e74 100755
--- a/scripts/build/bootstrap_archives
+++ b/scripts/build/bootstrap_archives
@@ -244,8 +244,8 @@ then
        done
 fi
 
-# Installing aptitude (FIXME)
-if [ "${LB_APT}" = "aptitude" ] && [ ! -x /usr/bin/aptitude ]
+# Installing aptitude
+if [ "${LB_APT}" = "aptitude" ] && [ ! -x chroot/usr/bin/aptitude ]
 then
        Chroot chroot "apt-get ${APT_OPTIONS} update"
        Chroot chroot "apt-get ${APT_OPTIONS} install aptitude"
diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives
index bae7439..ae1c9f5 100755
--- a/scripts/build/chroot_archives
+++ b/scripts/build/chroot_archives
@@ -456,8 +456,8 @@ EOF
                                done
                        fi
 
-                       # Installing aptitude (FIXME)
-                       if [ "${LB_APT}" = "aptitude" ] && [ ! -x /usr/bin/aptitude ]
+                       # Installing aptitude
+                       if [ "${LB_APT}" = "aptitude" ] && [ ! -x chroot/usr/bin/aptitude ]
                        then
                                Chroot chroot "apt-get ${APT_OPTIONS} update"
                                Chroot chroot "apt-get ${APT_OPTIONS} install aptitude"
]]

Best Regards,
Gabriele Gristina

Reply to: