mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix a typo and clarify the logic around the return value. Note that this
would allow us to do something after copying, if we should later want to do that. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31703 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
adaeffec5a
commit
923dc53431
@ -56,7 +56,10 @@ def main(argv):
|
|||||||
if not os.path.isabs(to_dir):
|
if not os.path.isabs(to_dir):
|
||||||
error("%s is not an absolute file name.\n%s" % to_dir, usage(progname))
|
error("%s is not an absolute file name.\n%s" % to_dir, usage(progname))
|
||||||
|
|
||||||
return copy_all(from_dir, to_dir, exts) != True
|
if not copy_all(from_dir, to_dir, exts):
|
||||||
|
# some kind of failure
|
||||||
|
return 1
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
def copy_all(from_dir, to_dir, exts):
|
def copy_all(from_dir, to_dir, exts):
|
||||||
@ -80,7 +83,7 @@ def copy_all(from_dir, to_dir, exts):
|
|||||||
shutil.copymode(from_file, to_file)
|
shutil.copymode(from_file, to_file)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return 0
|
return True
|
||||||
|
|
||||||
|
|
||||||
def create_dir(new_dir):
|
def create_dir(new_dir):
|
||||||
|
Loading…
Reference in New Issue
Block a user