Use of startswith()
parent
863f02d137
commit
615dd5c6e8
|
@ -423,7 +423,7 @@ if args.command == "package":
|
||||||
|
|
||||||
# Remove possible 'home'. The final targz should be extracted
|
# Remove possible 'home'. The final targz should be extracted
|
||||||
# at 'home.
|
# at 'home.
|
||||||
if filedest[0] == '~' and filedest[1] == '/':
|
if filedest.startswith("~/"):
|
||||||
filedest = filedest[2:]
|
filedest = filedest[2:]
|
||||||
|
|
||||||
# TODO save and restore owners and permissions
|
# TODO save and restore owners and permissions
|
||||||
|
|
Loading…
Reference in New Issue