Commit graph

301 commits

Author SHA1 Message Date
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
jesus m. rodriguez
7c1e8384c1 pep8: E303 too many blank lines (2) 2012-01-23 15:01:09 -05:00
jesus m. rodriguez
be32a9c29c remove unused fedora_cert reading 2012-01-23 14:41:31 -05:00
Devan Goodwin
5a168a2aa9 Drop to shell when dist-git merge errors encountered.
This will make releases to Fedora much more fault tolerant, if the
merges into release branches conflict you can resolve manually and tito
will pick up where you left off.
2011-12-22 16:19:41 -04:00
Devan Goodwin
193d05794e Use proper temp dirs for releasing. 2011-12-22 15:03:51 -04:00
Devan Goodwin
4f7287d60b Fix git release diff command.
Something has changed, I guess in git? Diff --cached used to return the
results from this, but no longer. Attempt both methods of diffing if one
doesn't turn up a hit.
2011-12-22 14:39:28 -04:00
Devan Goodwin
9a3e0b3e86 Add Fedora release target. 2011-12-22 13:51:46 -04:00
Devan Goodwin
3ea5a0ebe0 Automatic commit of package [tito] release [0.4.3-1]. 2011-12-15 11:39:40 -04:00
Miroslav Suchý
2c5b1e7c93 #5 - escape percent character in changelog 2011-12-13 09:20:37 -04:00
Devan Goodwin
3cd8d5a16d Revert unused args to releasers. 2011-12-09 14:26:24 -04:00
Miroslav Suchý
20e66d5c6d #28 - add args parameter to __init__() of releasers classess 2011-12-09 14:26:24 -04:00
jesus m. rodriguez
9dc276a7dd add release to usage, alphabetize list 2011-12-07 10:01:47 -05:00
jesus m. rodriguez
c1df0a1a81 PEP8 cleanup 2011-12-05 14:37:07 -05:00
jesus m. rodriguez
abf23e0778 no need to maintain timestamps: remove -t and -O from rsync command 2011-12-05 11:53:21 -05:00
jesus m. rodriguez
b0070e7a2d chdir to yum_temp_dir after creating, avoids rsync's getcwd error 2011-12-05 11:18:21 -05:00
Devan Goodwin
4f9ba03aaa Use -O during rsync commands to fix time setting errors. 2011-12-02 16:45:50 -04:00
Devan Goodwin
9112f14dfc Automatic commit of package [tito] release [0.4.2-1]. 2011-11-28 11:17:42 -04:00
Devan Goodwin
b64579ea40 Clean out old versions of RPMs when generating yum repos.
Only will remove packages whose name matches something we just build,
and has a lesser EVR.
2011-11-28 10:24:23 -04:00
Devan Goodwin
ecd9df22dc Update manpage to show multiple rsync paths. 2011-11-25 16:31:37 -04:00
Devan Goodwin
7e5496381a Publish packages to i386 dev repo as well. 2011-11-25 16:26:05 -04:00
Devan Goodwin
ac3161c43e Automatic commit of package [tito] release [0.4.1-1]. 2011-11-25 16:06:55 -04:00