mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-21 14:47:18 +00:00
specfiles: Allow archives in R pattern
The rationale behind this was to support extra tarball for R-RSQLite, in order to bump the bundled sqlite version using sqlite's upstream tarball instead of a local (huge) patch applied to the package.
This commit is contained in:
committed by
William Douglas
parent
bb32bec4cc
commit
324fc800e9
@@ -416,14 +416,15 @@ class Specfile(object):
|
||||
self._write_strip("%setup -q -D -T -n " + self.content.tarball_prefix)
|
||||
self._write_strip("gem spec %{{SOURCE0}} -l --ruby > {}.gemspec".format(self.name))
|
||||
else:
|
||||
if self.default_pattern == 'R':
|
||||
self._write_strip("%setup -q -c -n " + self.content.tarball_prefix)
|
||||
elif self.default_pattern == "godep":
|
||||
if self.default_pattern == "godep":
|
||||
# No setup needed each source is installed as is
|
||||
pass
|
||||
else:
|
||||
prefix = self.content.prefixes[self.url]
|
||||
if prefix:
|
||||
if self.default_pattern == 'R':
|
||||
prefix = self.content.tarball_prefix
|
||||
self._write_strip("%setup -q -c -n " + prefix)
|
||||
elif prefix:
|
||||
self._write_strip("%setup -q -n " + prefix)
|
||||
else:
|
||||
# Have to make up a path and create it
|
||||
|
||||
Reference in New Issue
Block a user