Commit graph

439 commits

Author SHA1 Message Date
Devan Goodwin
9e1839ac12 Fix old versions in yum repodata.
Stop generating repodata, *then* pruning old packages.
2013-10-21 15:29:33 -03:00
Devan Goodwin
5479011c3e Releasers update. 2013-09-24 14:27:58 -03:00
Devan Goodwin
dde7d354b4 Merge pull request #93 from maxamillion/maxamillion/docs
tito report man page missing options
2013-08-28 10:27:33 -07:00
Adam Miller
b894757726 tito report man page missing options 2013-08-28 12:19:02 -05:00
Devan Goodwin
ddca7441ac Merge pull request #91 from xsuchy/pull-req-obs
Implement OBS releaser
2013-08-14 09:53:13 -07:00
Devan Goodwin
957af760d7 Automatic commit of package [tito] release [0.4.17-1]. 2013-08-02 11:40:30 -03:00
Devan Goodwin
b76fdd0579 Fix F19 releaser. 2013-08-02 11:40:20 -03:00
Devan Goodwin
19199e7b27 Fix permissions after a Fedora/Brew build. 2013-08-02 11:28:50 -03:00
Devan Goodwin
11842c318c Comment out old nightly releaser.
Leaving it around as an example.
2013-08-02 11:28:50 -03:00
Miroslav Suchý
4338af875f Implement OBS releaser 2013-07-18 10:16:31 +02:00
Devan Goodwin
5f30ab9561 Merge pull request #90 from xsuchy/pull-req-newline
add newline to sys.stderr.write
2013-07-16 04:00:28 -07:00
Miroslav Suchý
50b98db4fb add newline to sys.stderr.write
sys.stderr.write does not add automatically \n as print does.

Addressing:
Warning: remote.origin do not exist. Assuming --offline, for remote tag checking.Building package [osc-0.132.4-4]

And I checked all sys.stderr.write() occurence in code as well.
2013-07-16 10:56:03 +02:00
Devan Goodwin
82ce9ef577 Automatic commit of package [tito] release [0.4.16-1]. 2013-07-09 10:44:13 -03:00
Devan Goodwin
cf3258932f Fix KojiGitReleaser method arguments. 2013-07-09 10:22:24 -03:00
Devan Goodwin
bb9d9eaf53 Automatic commit of package [tito] release [0.4.15-1]. 2013-07-08 14:32:15 -03:00
Devan Goodwin
5ed86b1fe3 Merge pull request #87 from maxamillion/docs
docs clean up and additions for build_targets
2013-07-08 10:31:54 -07:00
Devan Goodwin
408b5cf051 Automatic commit of package [tito] release [0.4.14-1]. 2013-07-08 14:30:54 -03:00
Devan Goodwin
81974cf5e9 Update releasers.conf. 2013-07-08 14:30:37 -03:00
Devan Goodwin
69bc194d3f Merge pull request #89 from jumanjiman/support_rhel6
resolve tito build failure on git 1.7.3.5 or older
2013-07-08 10:21:07 -07:00
Paul Morgan
f7f86ba139 resolve tito build failure on git 1.7.3.5 or older
Addresses https://github.com/dgoodwin/tito/issues/88

Before this commit: tito fails to build single project when using
git version 1.7.1 (RHEL 6), and `./runtests.py` fails with...

    ERROR: test_latest_rpm (functional.singleproject_tests.SingleProjectTests)
    ERROR: test_latest_srpm (functional.singleproject_tests.SingleProjectTests)
    ERROR: test_latest_tgz (functional.singleproject_tests.SingleProjectTests)
    ERROR: test_tag_rpm (functional.singleproject_tests.SingleProjectTests)
    ERROR: test_tag_srpm (functional.singleproject_tests.SingleProjectTests)
    ERROR: test_tag_tgz (functional.singleproject_tests.SingleProjectTests)

After this commit: tito can build single and multi projects when using
git version 1.7.1 (RHEL 6), and all tests pass.

More info: Git changed the way it interprets tree IDs
between v1.7.3.5 and v1.7.4-rc0.

On git version 1.7.3.5:

    $ id="d1fafbe48d24cbb90919b4e886f71c1dc4576c64:./"
    $ git archive --format=tar --prefix=tito-0.4.13/ $id | wc -l
    fatal: Not a valid object name
    0

On git version 1.7.4.rc0:

    $ id="d1fafbe48d24cbb90919b4e886f71c1dc4576c64:./"
    $ git archive --format=tar --prefix=tito-0.4.13/ $id | wc -l
    7837
2013-07-04 19:42:24 -04:00
Paul Morgan
cd442c90ff Add more debugging facilities
The `debug` method now takes an optional 2nd argument, which
is a command to run via `run_command` method.

The `run_command` method now takes an optional 2nd argument, which
is used to always print output of command.

If --debug is passed on the CLI, run `git archive` separately
to make problems visible.
2013-07-04 19:42:11 -04:00
Adam Miller
90ecad1b2e docs clean up and additions for build_targets 2013-06-19 13:19:12 -05:00
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