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

Re: /root/packages.chroot ?



Hi

I have made a patch to remove /root/packages.chroot. It is based on advice of jnqnfe

a summary :
>---------------------------------------------------------
                # Remove local packages key if it exists
                if Chroot chroot apt-key list | grep -q ${_LB_LOCAL_KEY_EMAIL}
                then
                        Chroot chroot apt-key del ${_LB_LOCAL_KEY_EMAIL}
                fi

                # My patch >---
                if [ -e "chroot/root/packages.chroot" ]
                then
                        rm -rf "chroot/root/packages.chroot"
                fi
                # ---<

                # Removing stage file
                rm -f .build/chroot_archives
                ;;
---------------------------------------------------------<

Thanks

David

--- chroot_archives	2015-05-08 13:47:50.408270175 +0200
+++ chroot_archives.new	2015-05-08 13:52:28.768770709 +0200
@@ -765,6 +765,11 @@
 			Chroot chroot apt-key del ${_LB_LOCAL_KEY_EMAIL}
 		fi
 
+                if [ -e "chroot/root/packages.chroot" ]
+                then
+                        rm -rf "chroot/root/packages.chroot"
+                fi
+
 		# Removing stage file
 		rm -f .build/chroot_archives
 		;;

Reply to: