mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-24 12:01:59 +01:00
Fix the creation of .list files for dpkg with maintainer scripts
Remove explicit use of sh to run custom maintainer postinst scripts. Review URL: http://codereview.chromium.org/542135
This commit is contained in:
parent
8a09a05ef0
commit
bf201ba640
@ -98,7 +98,7 @@ do_configure() {
|
||||
local chromium_postinst="${SRC_ROOT}/package_scripts/${p}.postinst"
|
||||
if [ -f "$chromium_postinst" ]; then
|
||||
echo "Running: $chromium_postinst"
|
||||
ROOT="$FLAGS_root" SRC_ROOT="$SRC_ROOT" sh -x $chromium_postinst
|
||||
ROOT="$FLAGS_root" SRC_ROOT="$SRC_ROOT" $chromium_postinst
|
||||
fi
|
||||
done
|
||||
|
||||
@ -136,7 +136,8 @@ do_unpack() {
|
||||
for f in $files; do
|
||||
cp "${tmpdir}/${f}" "${dpkg_info}/${package}.${f}"
|
||||
done
|
||||
touch "${dpkg_info}/${package}.list" # TODO: Proper .list files.
|
||||
dpkg -c "$p" | sed 's,.* \.\/,/,; s/ -> .*//; s,^/$,/.,; s,/$,,' > \
|
||||
"${dpkg_info}/${package}.list"
|
||||
|
||||
# Mark the package as installed successfully.
|
||||
echo "Status: install ok installed" >> "$dpkg_status"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user