Revision 386b57af lib/backend.py
b/lib/backend.py | ||
---|---|---|
812 | 812 |
utils.RemoveFile(new_name) |
813 | 813 |
return True |
814 | 814 |
|
815 |
|
|
815 | 816 |
def _ErrnoOrStr(err): |
816 | 817 |
"""Format an EnvironmentError exception. |
817 | 818 |
|
... | ... | |
871 | 872 |
|
872 | 873 |
return api_version |
873 | 874 |
|
875 |
|
|
874 | 876 |
def DiagnoseOS(top_dir=None): |
875 | 877 |
"""Compute the validity for all OSes. |
876 | 878 |
|
... | ... | |
922 | 924 |
% (api_version, constants.OS_API_VERSION)) |
923 | 925 |
|
924 | 926 |
# OS Scripts dictionary, we will populate it with the actual script names |
925 |
os_scripts = {'create': '', 'export': '', 'import': ''} |
|
927 |
os_scripts = {'create': '', 'export': '', 'import': '', 'rename': ''}
|
|
926 | 928 |
|
927 | 929 |
for script in os_scripts: |
928 | 930 |
os_scripts[script] = os.path.sep.join([os_dir, script]) |
... | ... | |
944 | 946 |
create_script=os_scripts['create'], |
945 | 947 |
export_script=os_scripts['export'], |
946 | 948 |
import_script=os_scripts['import'], |
949 |
rename_script=os_scripts['rename'], |
|
947 | 950 |
api_version=api_version) |
948 | 951 |
|
949 | 952 |
|
Also available in: Unified diff