hello
thanks for help. but i still not understand why i can't build rpm.
in foreman git repo i build archive ```git archive --prefix=foreman-1.13.0/
HEAD | bzip2 -9 > foreman-1.13.0.tar.bz2 ```
in foreman-packaging/foreman , branch rpm/develop , i call ```tito release
--scratch --arg source_dir=~/project/FOREMAN/foreman --dry-run
koji-foreman-nightly```
but i got error
```
Will release to the following targets: koji-foreman-nightly
Releasing to target: koji-foreman-nightly
Working in: /tmp/tito/release-foreman4yqcv_ok
Building release in Koji...
WARNING: foreman not specified in whitelist for foreman-nightly-nonscl-rhel7
Package *NOT* submitted to Koji.
Fetching sources...
rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen -
/home/dima/project/FOREMAN/foreman/config/settings.yaml
/home/dima/project/FOREMAN/foreman/config/settings.rb:7:in `<top
(required)>'
/home/dima/project/FOREMAN/foreman/config/application.rb:8:in `require'
/home/dima/project/FOREMAN/foreman/config/application.rb:8:in `<top
(required)>'
/home/dima/project/FOREMAN/foreman/Rakefile:1:in `<top (required)>'
/home/dima/.gem/ruby/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)
foreman.spec
Traceback (most recent call last):
File "/usr/bin/tito", line 23, in <module>
CLI().main(sys.argv[1:])
File "/usr/lib/python3.5/site-packages/tito/cli.py", line 202, in main
return module.main(argv)
File "/usr/lib/python3.5/site-packages/tito/cli.py", line 595, in main
scratch=self.options.scratch)
File "/usr/lib/python3.5/site-packages/tito/release/main.py", line 463,
in release
self._koji_release()
File "/usr/lib/python3.5/site-packages/tito/release/main.py", line 528,
in _koji_release
builder.srpm(dist=disttag)
File "/usr/lib/python3.5/site-packages/tito/builder/main.py", line 197,
in srpm
self.tgz()
File "/usr/lib/python3.5/site-packages/tito/builder/fetch.py", line 67,
in tgz
source_strat.fetch()
File
"/home/dima/project/FOREMAN/foreman-packaging/rel-eng/custom/custom.py",
line 88, in fetch
self.version = self._get_version()
File
"/home/dima/project/FOREMAN/foreman-packaging/rel-eng/custom/custom.py",
line 203, in _get_version
base_name = os.path.basename(self.sources[0])
IndexError: list index out of range
```
On Thursday, August 4, 2016 at 4:25:09 PM UTC+2, Dominic Cleal wrote:
>
> On 04/08/16 15:18, pronix pronix wrote:
> > appeared new question.
> > i want repeat full process locally.
> > which command is used for create tarball on ci.foreman.org ?
> > because standart git archive not fit , spec file expect some other
> > structured and prepared archive.
>
> It's a git archive but with a prefix:
>
> git archive --prefix=foreman-1.13.0/ HEAD | bzip2 -9 >
> foreman-1.13.0.tar.bz2
>
> --
> Dominic Cleal
> [email protected] <javascript:>
>
--
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.