Use remove_suffix instead of rstrip

This commit is contained in:
Fatih Aşıcı
2009-08-23 04:45:44 +00:00
parent 60b44c4e58
commit 2d2cbc1b8b
+1 -1
View File
@@ -94,7 +94,7 @@ class Package:
# cleanup install.tar.lzma and install.tar after installing # cleanup install.tar.lzma and install.tar after installing
if os.path.exists(lzmafile): if os.path.exists(lzmafile):
os.unlink(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): if os.path.exists(lzmafile):
os.unlink(lzmafile) os.unlink(lzmafile)
else: else: