Use remove_suffix instead of rstrip
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ class Package:
|
||||
# cleanup install.tar.lzma and install.tar after installing
|
||||
if os.path.exists(lzmafile):
|
||||
os.unlink(lzmafile)
|
||||
lzmafile = lzmafile.rstrip(ctx.const.lzma_suffix)
|
||||
lzmafile = util.remove_suffix(ctx.const.lzma_suffix, lzmafile)
|
||||
if os.path.exists(lzmafile):
|
||||
os.unlink(lzmafile)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user