Discussion:
createrepo/__init__.py
z***@osuosl.org
2012-07-10 13:31:54 UTC
Permalink
createrepo/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ac00b02dfd119e95e1070e27552f039653140d1e
Author: Zdeněk Pavlas <***@redhat.com>
Date: Mon Jul 9 17:23:30 2012 +0200

Fix a typo in doFinalMove(), do not keep other.sqlite.bz2. BZ 836917

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 3f55700..d2e2039 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
@@ -1173,7 +1173,7 @@ class MetaDataGenerator:
oldfile = os.path.join(output_old_dir, f)
finalfile = os.path.join(output_final_dir, f)
fn = '.'.join(f.split('.')[:-1])
- if fn in ('filelists.sqlite', 'other.sqlite.',
+ if fn in ('filelists.sqlite', 'other.sqlite',
'primary.sqlite') or oldfile in old_to_remove:
try:
os.remove(oldfile)

Loading...