From 2d2cbc1b8bade6e0ce7bff398a922523d83067be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Sun, 23 Aug 2009 04:45:44 +0000 Subject: [PATCH] Use remove_suffix instead of rstrip --- pisi/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/package.py b/pisi/package.py index 3e38958a..7121e884 100644 --- a/pisi/package.py +++ b/pisi/package.py @@ -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: