mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00
Merge pull request #378 from jirihnidek/master
When extra source file exist, then do not copy it
This commit is contained in:
commit
15ecd02524
1 changed files with 4 additions and 0 deletions
|
@ -504,6 +504,10 @@ class Builder(ConfigObject, BuilderBase):
|
|||
sources = getoutput(cmd).split("\n")
|
||||
|
||||
for source in sources[1:]:
|
||||
dst_file = os.path.join(self.rpmbuild_sourcedir, source)
|
||||
if os.path.isfile(dst_file):
|
||||
debug('Source file "%s" already exists. Skiping.' % dst_file)
|
||||
continue
|
||||
src = os.path.join(self.rpmbuild_sourcedir, self.tgz_dir, source)
|
||||
if os.path.islink(src) and os.path.isabs(src):
|
||||
src = os.path.join(self.start_dir, os.readlink(src))
|
||||
|
|
Loading…
Add table
Reference in a new issue