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