diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-04 13:32:35 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-04 13:32:35 +0000 |
commit | 4c626238e7413417db002a21f45042d1eca9280a (patch) | |
tree | 91a0ad1ab3f8614fa66e9e064eca60a636faf0b7 /meta/classes | |
parent | 66481d67f46755a86d2ad426bab049eddf4efa81 (diff) | |
download | openembedded-core-4c626238e7413417db002a21f45042d1eca9280a.tar.gz openembedded-core-4c626238e7413417db002a21f45042d1eca9280a.tar.bz2 openembedded-core-4c626238e7413417db002a21f45042d1eca9280a.tar.xz openembedded-core-4c626238e7413417db002a21f45042d1eca9280a.zip |
base.bbclass: Set GIT_CONFIG correctly
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 9c8cdd8d1..1b70bfdd5 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -725,13 +725,15 @@ def base_get_metadata_svn_revision(d): pass return revision +GIT_CONFIG = "${STAGING_DIR_NATIVE}/usr/etc/gitconfig" + def generate_git_config(e): import bb import os from bb import data if data.getVar('GIT_CORE_CONFIG', e.data, True): - gitconfig_path = bb.data.expand("${STAGING_DIR_NATIVE}/usr/etc/gitconfig", e.data) + gitconfig_path = bb.data.getVar('GIT_CONFIG', e.data, True) proxy_command = " gitproxy = %s\n" % data.getVar('GIT_PROXY_COMMAND', e.data, True) bb.mkdirhier(bb.data.expand("${STAGING_DIR_NATIVE}/usr/etc/", e.data)) @@ -748,10 +750,6 @@ def generate_git_config(e): ignore_host = data.getVar('GIT_PROXY_IGNORE_%s' % ignore_count, e.data, True) f.write(proxy_command) f.close - if not os.path.exists(os.path.expanduser("~/.gitconfig")): - import shutil - shutil.copyfile(gitconfig_path, os.path.expanduser("~/.gitconfig")) - METADATA_REVISION ?= "${@base_get_metadata_monotone_revision(d)}" |