提交 57a531fc 编写于 作者: S Shinwell Hu

clean up typo and identation warning

上级 efc2854e
......@@ -157,7 +157,7 @@ def get_pkg_json(pkg):
def download_source(resp, tgtpath):
if (os.path.exists(tgtpath) == False):
print("download path %s does not exist\n", tgtpath)
return Fals
return False
s_url = get_source_url(resp)
wget.download(s_url, out=tgtpath)
return
......@@ -169,22 +169,22 @@ def prepare_rpm_build_env(buildroot):
bpath=os.path.join(buildroot, "SPECS")
if (os.path.exists(bpath) == False):
os.mkdir(bpath)
os.mkdir(bpath)
bpath=os.path.join(buildroot, "BUILD")
if (os.path.exists(bpath) == False):
os.mkdir(bpath)
os.mkdir(bpath)
bpath=os.path.join(buildroot, "SOURCES")
if (os.path.exists(bpath) == False):
os.mkdir(bpath)
os.mkdir(bpath)
bpath=os.path.join(buildroot, "SRPMS")
if (os.path.exists(bpath) == False):
os.mkdir(bpath)
os.mkdir(bpath)
bpath=os.path.join(buildroot, "RPMS")
if (os.path.exists(bpath) == False):
os.mkdir(bpath)
os.mkdir(bpath)
bpath=os.path.join(buildroot, "BUILDROOT")
if (os.path.exists(bpath) == False):
os.mkdir(bpath)
os.mkdir(bpath)
return True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册