build: Make enable_localaccount.sh skip outdated packages.

This script would previously fail before getting to
make.conf.user if it couldn't access either of pam_google
and pam_offline.  Per cmasone, these packages are outdated
now and don't need to be updated.

BUG=none
TEST=ran the script

Change-Id: I5278c73562e580bdc90866c25c6b079b10b5e708

Review URL: http://codereview.chromium.org/3165039
This commit is contained in:
Daniel Erat 2010-08-19 18:04:46 -07:00
parent 81dae09de0
commit 64541ede55

View File

@ -14,29 +14,6 @@ fi
chroot_path=${2:-"../../chroot"}
echo "Enabling local account $1@gmail.com."
echo "Remove these files to disable:"
for namespace in pam_google pam_offline
do
file=../platform/$namespace/pam_localaccount.h
[ "$namespace" = pam_google ] && namespace=chromeos_pam
echo $file
cat <<EOF > $file
// local username for Chrome OS pam
// This file is auto-generated by enable_localaccount.sh
#ifndef CHROMEOS_PAM_LOCALACCOUNT_H_
#define CHROMEOS_PAM_LOCALACCOUNT_H_
namespace $namespace {
const char kLocalAccount[] = "$1@gmail.com";
}
#endif // CHROMEOS_PAM_LOCALACCOUNT_H_
EOF
done
# Add CHROMEOS_LOCAL_ACCOUNT var to /etc/make.conf.user
echo "Setting CHROMEOS_LOCAL_ACCOUNT in $chroot_path/etc/make.conf.user..."