Commit graph

717 commits

Author SHA1 Message Date
Devan Goodwin
d1fafbe48d Automatic commit of package [tito] release [0.4.13-1]. 2013-06-13 10:17:41 -03:00
Devan Goodwin
86de655325 Merge pull request #85 from xsuchy/pull-req-changelog
warn when no %changelog section is present
2013-06-13 06:04:25 -07:00
Devan Goodwin
83e18b2e8a Merge pull request #86 from lzap/white-black-list
allow multiline blacklist/whitelist
2013-06-13 06:04:09 -07:00
Lukas Zapletal
a98ab2c8ef allow multiline blacklist/whitelist 2013-06-13 14:56:04 +02:00
Miroslav Suchý
7da41d699b warn when no %changelog section is present 2013-06-06 14:46:55 +02:00
Devan Goodwin
67b6a0044f Merge pull request #84 from iNecas/fix-gembuilder-sources
Fix DistributionReleaser with GemBuilder
2013-05-30 07:48:14 -07:00
Ivan Necas
af2c2676fa 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.
2013-05-30 16:20:32 +02:00
Devan Goodwin
809c59ebae Merge pull request #83 from iNecas/fix-gem-builder
Fix gem builder
2013-05-30 05:18:43 -07:00
Ivan Necas
d2cbf4d24d Fix gem builder
Addresses: TypeError: find_spec_file() takes at most 1 argument (2 given)
2013-05-29 15:17:22 +02:00
Devan Goodwin
c4663c34d4 Merge pull request #81 from xsuchy/pull-req-error-out
import error_out from tito.common
2013-05-22 05:32:57 -07:00
Miroslav Suchý
f637f9fc78 import error_out from tito.common
addressing:
    $ tito release git-sat
    Will release to the following targets: git-sat
    Checking for tag [katello-1.4.2-4-sat] in git repo [ssh://git.corp.redhat.com/srv/git/engineering/katello]
    Releasing to target: git-sat
    Working in: /tmp/tito/release-katello-6a0e027d9e284d65e3407e7060e98ccf9d48b2fdiD7jdk
    Building upstream tgz for tag [katello-1.4.2-1]
    Checking for tag [katello-1.4.2-1] in git repo [ssh://git.corp.redhat.com/srv/git/engineering/katello]
    Creating katello-1.4.2.tar.gz from git tag: 507e03d5743fd2f7609d5bca80ed1e1b7d302fc4...
    Traceback (most recent call last):
      File "/usr/bin/tito", line 23, in <module>
        CLI().main(sys.argv[1:])
      File "/usr/lib/python2.6/site-packages/tito/cli.py", line 94, in main
        return module.main(argv)
      File "/usr/lib/python2.6/site-packages/tito/cli.py", line 638, in main
        scratch=self.options.scratch)
      File "/usr/lib/python2.6/site-packages/tito/release.py", line 490, in release
        self._git_release()
      File "/usr/lib/python2.6/site-packages/tito/release.py", line 507, in _git_release
        self.builder.tgz()
      File "/usr/lib/python2.6/site-packages/tito/builder.py", line 784, in tgz
        self.patch_upstream()
      File "/usr/lib/python2.6/site-packages/tito/distributionbuilder.py", line 37, in patch_upstream
        error_out("You are doomed. Diff contains binary files. You can not use this builder")
    NameError: global name 'error_out' is not defined
2013-05-15 09:20:21 +02:00
Devan Goodwin
58ac08ba4a Merge pull request #78 from xsuchy/pull-req-relative-dir
use correct path in rel-eng/packages if package reside in git-root
2013-05-14 05:12:05 -07:00
Devan Goodwin
4f5b2069a9 Merge pull request #80 from xsuchy/pull-req-missing-import
add missing import of commands
2013-05-14 04:40:26 -07:00
Miroslav Suchý
f16e664bcd use correct path in rel-eng/packages if package reside in git-root for DistributionBuilder
if package is directly in git-root, then
os.path.join('foo.git', '/') will return '/', which is not what we want'
2013-05-14 13:32:29 +02:00
Miroslav Suchý
7c96780c18 add missing import of commands
addressing:
Traceback (most recent call last):
  File "/usr/bin/tito", line 23, in <module>
    CLI().main(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/tito/cli.py", line 94, in main
    return module.main(argv)
  File "/usr/lib/python2.7/site-packages/tito/cli.py", line 638, in main
    scratch=self.options.scratch)
  File "/usr/lib/python2.7/site-packages/tito/release.py", line 490, in release
    self._git_release()
  File "/usr/lib/python2.7/site-packages/tito/release.py", line 507, in _git_release
    self.builder.tgz()
  File "/usr/lib/python2.7/site-packages/tito/builder.py", line 784, in tgz
    self.patch_upstream()
  File "/usr/lib/python2.7/site-packages/tito/distributionbuilder.py", line 34, in patch_upstream
    (status, output) = commands.getstatusoutput(
NameError: global name 'commands' is not defined
2013-05-14 13:31:00 +02:00
Devan Goodwin
82e6989267 Merge pull request #79 from xsuchy/pull-req-remote_git
Allow to change name of remote dist-git repo in tito.props
2013-05-13 05:50:45 -07:00
Miroslav Suchý
10283d8bae check if option in config exist
addressing:
Traceback (most recent call last):
  File "/usr/bin/tito", line 23, in <module>
    CLI().main(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/tito/cli.py", line 94, in main
    return module.main(argv)
  File "/usr/lib/python2.7/site-packages/tito/cli.py", line 635, in main
    auto_accept=self.options.auto_accept)
  File "/usr/lib/python2.7/site-packages/tito/release.py", line 473, in __init__
    overwrite_checkout = self.config.get(self.target, "remote_git_name")
  File "/usr/lib64/python2.7/ConfigParser.py", line 607, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'git-sat'
2013-05-09 19:39:05 +02:00
Miroslav Suchý
8f641894ec add example for remote_git_name 2013-05-09 17:11:24 +02:00
Miroslav Suchý
ca72ea19f6 allow to override name of remote dist-git repo 2013-05-09 16:37:51 +02:00
Miroslav Suchý
e1558c06c8 add to releaser self.config which will contains values from global and pkg config 2013-05-09 16:37:50 +02:00
Miroslav Suchý
38becd6101 use correct path in rel-eng/packages if package reside in git-root
if package reside in subdirectory, then in metadata file is written
  1.0 foo/
but if the package reside in git-root, then in metadata file is written
  1.0 /
which is not relative path and if it is evaluated by some tool, it is evaluated incorrectly
This patch will change this singularity to:
  1.0 ./
2013-04-29 16:08:10 +02:00
Devan Goodwin
7aa6832011 Automatic commit of package [tito] release [0.4.12-1]. 2013-04-26 15:27:04 -03:00
Devan Goodwin
b98995264e Merge pull request #76 from xsuchy/pull-req-man1
various enhancement to documentation
2013-04-26 11:20:17 -07:00
Devan Goodwin
8c34b497cf Merge pull request #77 from xsuchy/pull-req-obsolete
mark spacewalk.releng.* and build.py.props as obsolete
2013-04-26 11:18:56 -07:00
Miroslav Suchý
b8f034c37f mark build.py.props as obsolete 2013-04-25 00:04:24 +02:00
Miroslav Suchý
69b4e9d008 mark spacewalk.releng namespace as obsolete
I done s/spacewalk.releng./tito./ in spacewalk.git, but it may reside in some (private) branches.
So let keep it for little bit more releases, but print warnings.
2013-04-25 00:04:24 +02:00
Miroslav Suchý
25d8e44339 various enhancement to man pages 2013-04-24 22:57:55 +02:00
Miroslav Suchý
23faae8487 document KojiReleaser and do not mark it as experimental any more 2013-04-24 22:57:55 +02:00
Miroslav Suchý
9bcee4f80c document DEBUG environment variable 2013-04-24 22:57:55 +02:00
Miroslav Suchý
7cc7cdae66 document environment variable EDITOR for tagger 2013-04-24 22:57:55 +02:00
Devan Goodwin
36a5e7b767 Fix bad copy paste in releaser. 2013-04-24 14:49:30 -03:00
Devan Goodwin
5ac54f3b0e Add F19 releaser. 2013-04-24 13:14:10 -03:00
Devan Goodwin
fa705ff825 Merge pull request #72 from spkane/master
Configure rsync to preserve timestamps and file permissions
2013-04-24 09:08:13 -07:00
Devan Goodwin
e8ca22b1e8 Merge pull request #74 from sosiouxme/release-test
Enable tito release --test for git releasers
2013-04-24 09:06:38 -07:00
Devan Goodwin
9ee3e51a55 Merge pull request #68 from xsuchy/pull-req-scl1
new option --scl which will allows you to build srpm for software collection
2013-04-24 09:05:08 -07:00
Miroslav Suchý
f023538a80 document scl option for rsync releaser 2013-04-24 16:12:12 +02:00
Miroslav Suchý
53d186223c document RSYNC_USERNAME 2013-04-24 16:12:12 +02:00
Miroslav Suchý
2bf66f1e96 add SCL support to RsyncReleaser 2013-04-24 16:12:12 +02:00
Miroslav Suchý
700d3ba072 remove empty lines from rpm output
because output of:
rpm -q --qf '%{name}'  --eval '%undefine scl' --specfile rubygem-robotex.spec
is:

rubygem-robotex
(i.e. two empty lines, then the output)
2013-04-24 16:12:11 +02:00
Miroslav Suchý
88cbab1758 use SCL for KojiReleaser 2013-04-24 16:12:11 +02:00
Miroslav Suchý
994f3394c7 move scl rpmbuild options to function and allow to build rpm using SC 2013-04-24 16:12:11 +02:00
Miroslav Suchý
637d8ec3fa new option --scl which will allows you to build srpm for software collection 2013-04-24 16:12:11 +02:00
Luke Meyer
8fafa710f4 fix the whitespace - tabs->spaces 2013-04-24 09:42:39 -04:00
Luke Meyer
c8e9b941ab add --yes on tito release to keep from requiring input 2013-04-24 09:42:39 -04:00
Devan Goodwin
bdcaf75b6a Merge pull request #69 from xsuchy/pull-req-31
#31 - if build fails due missing dependecies, suggest to run yum-builddep
2013-04-24 05:53:04 -07:00
Luke Meyer
df27d8bb11 Enable tito release --test for git releasers
* Store the --test flag on the releaser and pass it to the builder
* With --test in effect, have the builder update the spec file
* When the builder does so it also updates the build_version to include git hash
2013-04-22 16:46:54 -04:00
Sean P. Kane
c87113a2a9 Add ability to customize rsync arguments 2013-04-18 13:25:28 -07:00
Devan Goodwin
60d3f577c0 Fix broken extraction of bugzilla numbers from commits.
Copied files was never getting populated, so files we're not being git
added properly to show up in diff.
2013-04-18 14:45:44 -03:00
Devan Goodwin
8dce61a12b Re-add write permission fedpkg takes away.
Uploading new sources with fedpkg seems to make files read only after
uploaded in an attempt to maintain their checksum most likely.

tito already generates files with consistent checksums, and this is
breaking if you release to Fedora/RHEL and then try to release anywhere
else.
2013-04-18 13:44:28 -03:00
jesus m. rodriguez
3c8569f7ac Merge pull request #71 from xsuchy/pull-req-scratch
document SCRATCH environment variable
2013-04-18 07:24:49 -07:00