Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Unified Diff: src/scripts/dpkg_no_scripts.sh

Issue 542135: Fix the creation of .list files for dpkg with maintainer scripts (Closed)
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/dpkg_no_scripts.sh
diff --git a/src/scripts/dpkg_no_scripts.sh b/src/scripts/dpkg_no_scripts.sh
index e4a57e56975ea012c69eca73c04aea630811d1f3..505417041ec6d07d2ef5ab3d07b3b9a7ca9b6949 100755
--- a/src/scripts/dpkg_no_scripts.sh
+++ b/src/scripts/dpkg_no_scripts.sh
@@ -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"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698