mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00
Fix bug with fetch builder source replacement.
This commit is contained in:
parent
faded8fe3a
commit
8d64e56b4e
3 changed files with 2 additions and 3 deletions
|
@ -152,7 +152,7 @@ class ArgSourceStrategy(SourceStrategy):
|
|||
|
||||
# Add a line to replace in the spec for each source:
|
||||
source_regex = re.compile("^(source%s:\s*)(.+)$" % i, re.IGNORECASE)
|
||||
new_line = "Source%s: %s" % (i, base_name)
|
||||
new_line = "Source%s: %s\n" % (i, base_name)
|
||||
replacements.append((source_regex, new_line))
|
||||
|
||||
# Replace version and release in spec:
|
||||
|
|
|
@ -7,9 +7,9 @@ Summary: tito test package for the external source builder
|
|||
URL: https://example.com
|
||||
Group: Applications/Internet
|
||||
License: GPLv2
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
%description
|
||||
Nobody cares.
|
||||
|
|
|
@ -9,7 +9,6 @@ Group: Development/Tools
|
|||
License: GPLv2
|
||||
URL: http://rm-rf.ca/tito
|
||||
Source0: http://rm-rf.ca/files/tito/tito-%{version}.tar.gz
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
|
|
Loading…
Add table
Reference in a new issue