mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-15 15:42:06 +01:00
Remove duplication in chromiumos-build invocation
Review URL: http://codereview.chromium.org/555032
This commit is contained in:
parent
844d5abb1d
commit
d4ecbea68c
@ -8,6 +8,11 @@
|
|||||||
# The path to common.sh should be relative to your script's location.
|
# The path to common.sh should be relative to your script's location.
|
||||||
. "$(dirname "$0")/common.sh"
|
. "$(dirname "$0")/common.sh"
|
||||||
|
|
||||||
|
verbose() {
|
||||||
|
echo "$@"
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
assert_inside_chroot
|
assert_inside_chroot
|
||||||
assert_not_root_user
|
assert_not_root_user
|
||||||
|
|
||||||
@ -57,8 +62,7 @@ if [ $FLAGS_new_build -eq $FLAGS_TRUE ]; then
|
|||||||
for PKG in $PLATFORM_DIRS $THIRD_PARTY_PACKAGES; do
|
for PKG in $PLATFORM_DIRS $THIRD_PARTY_PACKAGES; do
|
||||||
PACKAGES="$PACKAGES ${PKG%/*}"
|
PACKAGES="$PACKAGES ${PKG%/*}"
|
||||||
done
|
done
|
||||||
echo chromiumos-build -a "$FLAGS_architecture" --apt-source $PACKAGES
|
verbose chromiumos-build -a "$FLAGS_architecture" --apt-source $PACKAGES
|
||||||
chromiumos-build -a "$FLAGS_architecture" --apt-source $PACKAGES
|
|
||||||
else
|
else
|
||||||
# Build dh-chromeos really first. Some of third_party needs it.
|
# Build dh-chromeos really first. Some of third_party needs it.
|
||||||
echo "Building package dh-chromeos..."
|
echo "Building package dh-chromeos..."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user