瀏覽代碼

Merge pull request #1954 from vjFaLk/get-path-fix

[fix] gzip path
version-14
Rushabh Mehta 9 年之前
committed by GitHub
父節點
當前提交
f590832f15
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. +2
    -4
      frappe/installer.py

+ 2
- 4
frappe/installer.py 查看文件

@@ -361,13 +361,11 @@ def check_if_ready_for_barracuda():

def extract_sql_gzip(sql_gz_path):
try:
success = subprocess.check_output(['gzip', '-d', '-v', '-f', sql_gz_path])
subprocess.check_call(['gzip', '-d', '-v', '-f', sql_gz_path])
except:
raise

path = sql_gz_path[:-3] if success else None

return path
return sql_gz_path[:-3]

def extract_tar_files(site_name, file_path, folder_name):
# Need to do frappe.init to maintain the site locals


Loading…
取消
儲存