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

Unified Diff: src/scripts/dpkg_no_scripts.sh

Issue 527015: Changes to install_packages.sh so that we can master an image without (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 | « src/scripts/customize_rootfs.sh ('k') | src/scripts/install_packages.sh » ('j') | 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 fe5a817a8141431f26c821590e1721c82abc5535..90dc377adc7d21bfd865cc9562b9486a80fea63f 100755
--- a/src/scripts/dpkg_no_scripts.sh
+++ b/src/scripts/dpkg_no_scripts.sh
@@ -26,12 +26,17 @@ DEFINE_string status_fd "" \
"The file descriptor to report status on; ignored."
DEFINE_boolean unpack $FLAGS_FALSE "Is the action 'unpack'?"
DEFINE_boolean configure $FLAGS_FALSE "Is the action 'configure'?"
+DEFINE_boolean remove $FLAGS_FALSE "Is the action 'remove'?"
DEFINE_boolean auto_deconfigure $FLAGS_FALSE "Ignored"
+DEFINE_boolean force_depends $FLAGS_FALSE "Ignored"
+DEFINE_boolean force_remove_essential $FLAGS_FALSE "Ignored"
# Fix up the command line and parse with shflags.
FIXED_FLAGS="$@"
FIXED_FLAGS=${FIXED_FLAGS/status-fd/status_fd}
FIXED_FLAGS=${FIXED_FLAGS/auto-deconfigure/auto_deconfigure}
+FIXED_FLAGS=${FIXED_FLAGS/force-depends/force_depends}
+FIXED_FLAGS=${FIXED_FLAGS/force-remove-essential/force_remove_essential}
FLAGS $FIXED_FLAGS || exit 1
eval set -- "${FLAGS_ARGV}"
@@ -42,6 +47,11 @@ if [ $FLAGS_configure -eq $FLAGS_TRUE ]; then
# We ignore configure requests.
exit 0
fi
+if [ $FLAGS_remove -eq $FLAGS_TRUE ]; then
+ # We log but ignore remove requests.
+ echo "dpkg_no_scripts, remove: $@"
+ exit 0
+fi
if [ $FLAGS_unpack -ne $FLAGS_TRUE ]; then
# Ignore unknown command line.
echo "Unexpected command line: $@"
@@ -72,6 +82,7 @@ for p in "$@"; do
for f in $FILES; do
cp "${TMPDIR}/$f" "${DPKG_INFO}/$PACKAGE.$f"
done
+ touch "${DPKG_INFO}/$PACKAGE.list"
# Mark the package as installed successfully.
echo "Status: install ok installed" >> "$DPKG_STATUS"
« no previous file with comments | « src/scripts/customize_rootfs.sh ('k') | src/scripts/install_packages.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698