]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
apt-native: don't let dpkg overwrite files by default
authorJan Luebbe <jlu@pengutronix.de>
Mon, 6 Apr 2020 13:23:57 +0000 (15:23 +0200)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 28 Apr 2020 02:05:17 +0000 (10:05 +0800)
With --force-overwrite (implied by --force-all), dpkg will not abort
when a package overwrites files from different packages. As this can
also lead to "The following package disappeared from your system as
all files have been overwritten by other packages: <package>" and
subsequently broken dependencies, this makes the simple case of
conflicting files hard to debug.

Instead of finding all possibly required force options, only disable
overwrite for now.

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-devtools/apt/files/apt.conf

index 03351356bc01361ad2bc6690ad435feff02e4897..c95a5b07af54fe449df05ce4c5f0dcbe1e4be5f9 100644 (file)
@@ -39,4 +39,4 @@ APT
   };
 };
 
-DPkg::Options {"--root=#ROOTFS#";"--admindir=#ROOTFS#/var/lib/dpkg";"--force-all";"--no-debsig"};
+DPkg::Options {"--root=#ROOTFS#";"--admindir=#ROOTFS#/var/lib/dpkg";"--force-all";"--no-force-overwrite";"--no-debsig"};