Build error fix
This commit is contained in:
@@ -11,11 +11,13 @@ def dodoc(*documentList):
|
|||||||
|
|
||||||
srcTag = src_name + '-' + src_version + '-' + src_release
|
srcTag = src_name + '-' + src_version + '-' + src_release
|
||||||
|
|
||||||
# FIXME: Exception yiyoruz eğer klasör mevcutsa, adam edilecek!
|
try:
|
||||||
os.makedirs(install_dir + '/' + 'usr/share/doc/' + srcTag)
|
os.makedirs(install_dir + '/' + 'usr/share/doc/' + srcTag)
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
|
|
||||||
for document in documentList:
|
for document in documentList:
|
||||||
if os.access(document, os.F_OK):
|
if os.access(document, os.F_OK):
|
||||||
shutil.copyfile(document, os.path.join(install_dir, \
|
shutil.copyfile(document, os.path.join(install_dir, \
|
||||||
'usr/share/doc/' + srcTag + '/' + os.path.basename(document)))
|
'usr/share/doc/' + srcTag + '/' + os.path.basename(document)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user