Commit graph

321 commits

Author SHA1 Message Date
jesus m. rodriguez
43a1366541 fix: RsyncReleaser doesn't handle multiple rsync locations
The refactoring of YumRepoReleaser into RsyncReleaser and
YumRepoReleaser caused a regression that didn't allow multiple rsync
locations to be defined and sync'd properly.

Moved a bunch of code around and adding of method variables to
allow multiple rsync and tempdirs to be used.
2012-09-20 16:47:09 -04:00
jesus m. rodriguez
c1a4eb0a62 remove tabs and trailing whitespace. add whitespace between methods 2012-09-20 10:29:24 -04:00
jesus m. rodriguez
d601601f3d Merge pull request #51 from dgoodwin/builderarg
pass in arguments to builder
2012-09-13 07:46:13 -07:00
jesus m. rodriguez
611bad9933 change args -> mock_args to be a bit clearer. 2012-09-12 12:17:48 -04:00
jesus m. rodriguez
6c8fe3e02f pass in arguments to builder 2012-09-11 13:43:31 -04:00
Devan Goodwin
c8404efe86 Merge pull request #50 from iNecas/extractsha1
Handle stderr noise getting from remote server
2012-09-07 05:24:20 -07:00
Ivan Necas
e97f8539fc Handle stderr noise getting from remote server
Use regular expression to extract the SHA1 from the `git ls-remote` call
response. The reason is that there might be some messages in the
response going to stderr, that are captured when using run_command,
e.g.:

```
Could not chdir to home directory /home/johndoe: No such file or directory
fe87e2b75ed1850718d99c797cc171b88bfad5ca refs/tags/my-awesome-lib-1.0.1-1
```

I used 30 and more characters for the regular expression because I was
not sure the SHA1 is always shown as 40 characters. However we can be
quite certain that the word of 30 and more [0-9a-f] characters is a
SHA1.
2012-09-07 14:16:05 +02:00
Devan Goodwin
bc25135ce7 Add Fedora 18 releases. 2012-09-05 10:21:36 -03:00
Devan Goodwin
6373e192e8 Automatic commit of package [tito] release [0.4.9-1]. 2012-09-04 09:27:15 -03:00
Devan Goodwin
272406c1b3 Stop passing --installdeps for mock builds.
Aparently not required. :)
2012-08-30 15:25:23 -03:00
Devan Goodwin
47bc8576fa New author. :) 2012-08-29 16:36:39 -03:00
Pall Sigurdsson
03674d4aee manpages for releasers.conf now have updated information for rsyncreleaser and yumreporeleaser 2012-08-29 16:34:22 -03:00
Pall Sigurdsson
493e1b3114 YumRepoReleaser feature: createrepo command can now be specified from releasers.conf with the 'createrepo_command' config option 2012-08-29 16:34:12 -03:00
Pall Sigurdsson
27198d0efe Fixed: Crash when yumreporeleaser encounters a signed rpm and does not have the public key 2012-08-29 16:34:04 -03:00
Pall Sigurdsson
7876a1deb3 Created new releaser called RsyncReleaser. Based heavily on YumRepoReleaser. Refactored YumRepoReleaser to inherit most code from RsyncReleaser.
RsyncReleaser takes an optional argument "filetypes" from releasers.conf
which specifies what type of packages should be rsynced

[rsync_test-example]
releaser = tito.release.RsyncReleaser
builder = tito.builder.MockBuilder
builder.mock = fedora-16-x86_64
filetypes = tgz rpm srpm
rsync = /tmp/rsync_repo/

in case of YumRepoReleaser default filetypes is of course only rpm.
2012-08-29 16:33:54 -03:00
Devan Goodwin
5fdd59c5ba Adding a TODO. 2012-08-29 16:30:54 -03:00
Devan Goodwin
db3a9cdee4 Merge pull request #48 from brenton/error_out
Optionally print stacktrace whenever error_out is hit
2012-07-16 12:31:45 -07:00
Brenton Leanhardt
3e5c4306e5 Adding the missing import 2012-07-16 12:09:30 -04:00
Brenton Leanhardt
24fa85702f Optionally print stacktrace whenever error_out is hit 2012-07-16 10:01:04 -04:00
Devan Goodwin
a24aac064e Merge pull request #47 from dgoodwin/jbowes/one-tag
encourage users to push only their new tag
2012-06-26 07:07:25 -07:00
James Bowes
e6127dedbe encourage users to push only their new tag 2012-06-26 10:57:44 -03:00
Devan Goodwin
2486ed3327 Attempt to copy local Sources during releases.
For releasers copying into a build system SCM, we now extract the
SourceX filenames from the spec file, and anything we see in the
relative directory matching those exactly will be copied. (i.e. if you
store additional sources for your package at the same level as your spec
file, these will now be copied)
2012-04-20 16:26:44 -03:00
Devan Goodwin
c0844f7018 Automatic commit of package [tito] release [0.4.8-1]. 2012-04-02 14:58:17 -03:00
Devan Goodwin
b4e96bf558 Fix MockBuilder for packages that use non-standard builders normally.
MockBuilder was assuming your package would build fine with the normal
builder, anything using NoTgzBuilder (or others likely) would break.

Now we will instantiate a builder internally, whatever the package would
use by default, and use this to build just the srpm before handing it
off to mock.
2012-04-02 13:41:57 -03:00
Miroslav Suchý
c74d7f67ed interpret '0' as False
Python is not Perl. '0' means True. We want to treat it as False.
2012-03-27 09:11:43 -03:00
Devan Goodwin
83e71cd5ff Automatic commit of package [tito] release [0.4.7-1]. 2012-03-15 12:35:47 -03:00
Devan Goodwin
f09f255834 Fix issues with DistributionBuilder constructor
Making the base builder class a little more tolerant of the optional
arguments that could be passed in as well.
2012-03-15 12:35:32 -03:00
Devan Goodwin
7194a67482 Stop building for F14, add F17. 2012-03-15 12:35:32 -03:00
jesus m. rodriguez
1423e57e43 pep8: too many blank lines 2012-03-14 13:47:48 -04:00
Devan Goodwin
6720550c17 Automatic commit of package [tito] release [0.4.6-1]. 2012-03-14 13:30:31 -03:00
Devan Goodwin
cd0da74485 Issue 39: Create /tmp/tito if it doesn't already exist.
Because we treat this directory as a per-user directory (tito doesn't
work well on a multi-user system, users have to configure their own
output dirs with RPMBUILD_BASEDIR=~/tito/ in ~/.titorc), it seems best
to do this internally to tito rather than try to handle the permissions
in a spec file that won't know who should actually own it.
2012-03-14 13:26:08 -03:00
Devan Goodwin
a71d20fa04 Add support for test build releases.
Adding "builder.test = 1" to a target in releasers.conf will allow you
to submit test builds out to a yum repository. This can be useful for
automated nightly builds. This is done as a builder arg rather than a
CLI argument to prevent anyone from accidentally doing a --test release
for something important. Instead it is a feature you configure once for
your targets.
2012-03-14 13:17:58 -03:00
Devan Goodwin
9f8d535eb4 Stop passing all CLI args to builders.
Instead using a kwargs solution for optional things to be passed
through. Will allow for easier use of builders in other components which
do not have a set of CLI args to pass in. (i.e. releasers)
2012-03-14 12:44:52 -03:00
Devan Goodwin
b05c4dd519 Add mock builder speedup argument.
This builder arg will cause the mock builder to skip --init, and add
--no-clean and --no-cleanup-after options.
2012-03-14 12:01:08 -03:00
Michael Stead
306ea4b2d8 Added no-cleanup and no-cleanup-after args to Mock builder
The cache would be cleaned each time Mock was used causing long build time.
This allows using the cache, speeding up rebuilds.
2012-03-13 23:35:29 -03:00
Michael Stead
483dbafc6b Add support for no-value args in builder.
- currently can not support args such as --my-arg in builders
  without having to specify --builder-arg myarg=
2012-03-13 23:25:05 -03:00
jesus m. rodriguez
b3cedfd10f use -rlvz instead of -avz for rsync.
We keep getting permission denied with trying to set time on directories.
According to the rsync man page:
-a, --archive               archive mode; equals -rlptgoD (no -H,-A,-X)

Hrm so what do those mean?

 -r, --recursive             recurse into directories
 -l, --links                 copy symlinks as symlinks
 -g, --group                 preserve group
 -o, --owner                 preserve owner (super-user only)
 -D                          same as --devices --specials
 -p, --perms                 preserve permissions
 -t, --times                 preserve modification times

So by having -a, that means -t automatically gets added which is not
what we want. And in some cases we were adding -no-p and -no-g
again added because -a includes them.

So by switching to -rlvz we avoid all these problems.
2012-02-03 16:22:25 -05:00
Devan Goodwin
c3e24c69f4 Merge remote-tracking branch 'eck/changelog-format' 2012-02-01 14:37:34 -04:00
Devan Goodwin
7b14e00568 Revert "Revert "Add support for customizable changelog formats""
This reverts commit 7147e4a050.
2012-02-01 14:36:47 -04:00
John Eckersberg
ef0bbc2f91 Fix changelog_format typo in default config
This was being wrongfully interpolated by ConfigParser and causing a
backtrace.
2012-02-01 11:59:17 -05:00
Devan Goodwin
7147e4a050 Revert "Add support for customizable changelog formats"
This reverts commit 63abc26b0f.

Merged this prematurely, seems to be something wrong if you have no
changelog format specified.
2012-02-01 12:49:53 -04:00
Devan Goodwin
847059490e Merge pull request #37 from jeckersb/changelog-format
Add support for customizable changelog formats
2012-02-01 08:13:14 -08:00
John Eckersberg
63abc26b0f Add support for customizable changelog formats
This adds a new option, changelog_format, which allows specifying the
full format of generated changelog entries.  This also deprecates use
of changelog_with_email, since it is a subset of a fully-customizable
changelog format.
2012-01-31 16:14:59 -05:00
Devan Goodwin
1c500dbefc Automatic commit of package [tito] release [0.4.5-1]. 2012-01-24 11:26:51 -04:00
Devan Goodwin
38f8597a46 Extract bz's and prompt to modify commit message in git releasers. 2012-01-24 11:26:23 -04:00
Devan Goodwin
2f913cb9e1 Automatic commit of package [tito] release [0.4.4-1]. 2012-01-23 18:08:26 -04:00
jesus m. rodriguez
061727dd48 Merge pull request #36 from jeckersb/issue35
#35 - EDITOR with arguments produces backtrace
2012-01-23 13:06:14 -08:00
John Eckersberg
96bf575ca8 Issue #35: EDITOR with arguments produces backtrace
Currently EDITOR is assumed to be a single word (e.g. 'vi') and does
not handle and editor with arguments (e.g. 'emacs --quick -nw') due to
the way subprocess.call is invoked.  This patch allows either to work
in both VersionTagger._make_changelog and
CvsReleaser._cvs_user_confirm_commit_msg.
2012-01-23 15:17:49 -05:00
jesus m. rodriguez
1bd37365e9 pep8: E251 no spaces around keyword / parameter equals 2012-01-23 15:13:42 -05:00
jesus m. rodriguez
1a9d4c7daa pep8: E251 no spaces around keyword / parameter equals 2012-01-23 15:01:26 -05:00