Print warning when failed to temp ks in normalize_ksfile().
authorHuang Hao <hao.h.huang@intel.com>
Mon, 11 Mar 2013 05:48:33 +0000 (13:48 +0800)
committerGerrit Code Review <gerrit2@otctools.jf.intel.com>
Thu, 14 Mar 2013 03:15:50 +0000 (20:15 -0700)
commit9b7a78812076ca0426fc64d69519cfbd24419852
treec08fd3e8c7130493244e90abd55b5eb1aacbf567
parentf11008f4c3fe8adf14aa16d0106ed8e0baf087d7
Print warning when failed to temp ks in normalize_ksfile().

* print waring message in try/except block
* add doc string
* remove dir argument to tempfile.mkstemp, since its default
strategy is better than hardcode "/tmp"
* rename _clrtempks to remove_temp_ks and move it behind
* remove the code that check file existence, since it will be
always checked by confmgr.__set_ksconf

Change-Id: Ic4c6125f18eb9e9dda8faa7bc687f97b178b1cea
mic/utils/misc.py