mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-24 04:32:46 +00:00
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 9feb9cf48d
the tgz method in
NoTgzBuilder is generic enough to be able to extract the source files
even for GemBuilder.
This commit is contained in:
parent
809c59ebae
commit
af2c2676fa
1 changed files with 0 additions and 18 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue