From af2c2676fafb8698db6b0b0339fbf2c4426e1946 Mon Sep 17 00:00:00 2001 From: Ivan Necas Date: Thu, 30 May 2013 16:20:32 +0200 Subject: [PATCH] Fix DistributionReleaser with GemBuilder Due to error in GemBuilder.tgz method generating the list of sources there was problem with adding the sources into lookaside (the list of sources contained all the files in the directory, even directories). Thanks to 9feb9cf48d0e24a74fefed8c41f8b2476882bac2 the tgz method in NoTgzBuilder is generic enough to be able to extract the source files even for GemBuilder. --- src/tito/builder.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/tito/builder.py b/src/tito/builder.py index 85bad43..a6b6073 100644 --- a/src/tito/builder.py +++ b/src/tito/builder.py @@ -578,24 +578,6 @@ class GemBuilder(NoTgzBuilder): self.spec_file = os.path.join( self.rpmbuild_gitcopy, self.spec_file_name) - def tgz(self): - """ Override parent behavior, we don't have or need a tgz. """ - # This method is named tgz to maintain consistent with the api - # but it is misnamed and possibly confusing. - self._setup_sources() - self.ran_tgz = True - - # This isn't required to be a tuple but left that way in case of the - # need for flexibility later (Gemfile, Gemfile.lock) - source_suffixes = ('.gemspec') - debug("Scanning for sources.") - for filename in os.listdir(self.rpmbuild_gitcopy): - for suffix in source_suffixes: - if filename.endswith(suffix): - self.sources.append(os.path.join(self.rpmbuild_gitcopy, - filename)) - debug(" Sources: %s" % self.sources) - class CvsBuilder(NoTgzBuilder): """