Fix conflict markers in install_and_cache_pkgs.sh: use PR's ls approach for all dpkg info files

This commit is contained in:
copilot-swe-agent[bot] 2026-06-13 23:34:42 +00:00 committed by GitHub
parent 9a8897f258
commit da3be0d789
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,16 +105,11 @@ for installed_package in ${installed_packages}; do
# and all dpkg metadata (info files) to Tar.
tar -cf "${cache_filepath}" -C / --verbatim-files-from --files-from <(
{ dpkg -L "${package_name}" &&
<<<<<<< HEAD
{ get_install_script_filepath "/" "${package_name}" "preinst" ;
get_install_script_filepath "/" "${package_name}" "postinst" ; } ; } |
=======
# Include all dpkg info files for this package (list, md5sums,
# conffiles, triggers, preinst, postinst, prerm, postrm, etc.)
# so dpkg recognizes the package after cache restore.
ls -1 /var/lib/dpkg/info/${package_name}.* 2>/dev/null &&
ls -1 /var/lib/dpkg/info/${package_name}:*.* 2>/dev/null ; } |
>>>>>>> origin/pr/190
while IFS= read -r f; do
if test -f "${f}" -o -L "${f}"; then
get_tar_relpath "${f}"