Commit graph

110 commits

Author SHA1 Message Date
Paul Morgan
34d8cb1a35 spec file includes titorc(5) and tito(8) 2010-09-09 21:50:22 +08:00
Paul Morgan
9dc2b38219 add manpage source: tito(8) 2010-09-09 21:50:22 +08:00
Paul Morgan
15bbc9cc04 add manpage source: titorc(5) 2010-09-09 21:50:22 +08:00
Paul Morgan
aa78fa515d allow asciidoc source to include AUTHORS file
blank between each author so authors show up on separate lines
when building from asciidoc
2010-09-09 21:50:21 +08:00
Paul Morgan
8697c0d61d git should ignore generated manpage content 2010-09-09 21:50:21 +08:00
Mike McCune
d0a3fd539b adding rpm-build as a Requires. Seems pretty critical 2010-07-06 08:51:18 -03:00
Marian Csontos
60866a3caf Missing argv in tito report 2010-06-24 09:03:42 -03:00
Devan Goodwin
91f3b175fa Add missing dep on python-setuptools. 2010-06-08 10:35:41 -03:00
Devan Goodwin
fa9e550ca1 Automatic commit of package [tito] release [0.2.0-1]. 2010-06-02 10:48:18 -03:00
Devan Goodwin
1256e9b2ce Check for min tito version using better version comparison. 2010-06-02 10:34:32 -03:00
Miroslav Suchý
0cc40efdbb bump up version of tito 2010-06-02 09:25:53 -03:00
Miroslav Suchý
a06f25f5ad close file as soon as possible 2010-06-02 09:25:53 -03:00
Miroslav Suchý
4191ae9fe2 allow building only with minimal version of tito 2010-06-02 09:25:53 -03:00
Miroslav Suchý
53d0557ee5 add section if it is in local config and not in global config
addresing:
Traceback (most recent call last):
  File "/home/msuchy/rhn/git-for-nightly-buils/rel-eng/bin/tito", line 26, in <module>
    CLI().main()
  File "/home/msuchy/rhn/git-for-nightly-buils/rel-eng/bin/../lib/spacewalk/releng/cli.py", line 123, in main
    module.main()
  File "/home/msuchy/rhn/git-for-nightly-buils/rel-eng/bin/../lib/spacewalk/releng/cli.py", line 355, in main
    build_dir)
  File "/home/msuchy/rhn/git-for-nightly-buils/rel-eng/bin/../lib/spacewalk/releng/cli.py", line 385, in _create_builder
    offline=options.offline)
  File "/home/msuchy/rhn/git-for-nightly-buils/rel-eng/bin/../lib/spacewalk/releng/builder.py", line 633, in __init__
    test=test, offline=offline)
  File "/home/msuchy/rhn/git-for-nightly-buils/rel-eng/bin/../lib/spacewalk/releng/builder.py", line 60, in __init__
    self.config.set(section, options, pkg_config.get(section, options))
  File "/usr/lib64/python2.6/ConfigParser.py", line 377, in set
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: "buildconfig"
2010-06-02 09:25:52 -03:00
Devan Goodwin
b6823964a3 Stop printing argv. 2010-05-25 22:25:16 -03:00
Devan Goodwin
4147493e33 Added option to pass custom options to rpmbuild. 2010-05-25 22:23:36 -03:00
Devan Goodwin
a1df94fdc1 Respect offline setting during undo tag. 2010-05-24 11:35:19 -03:00
Devan Goodwin
9ab84803b7 Fix bad tito script args. 2010-05-24 11:13:07 -03:00
Devan Goodwin
a0cdf98405 Test tito via CLI class rather than shell commands.
Should allow for much better error checking.
2010-05-24 00:44:47 -03:00
Devan Goodwin
79f58c17c1 Add tito-dev script to run directly from source.
Add bin/ to the end of your PATH and tito-dev will run everything from
source checkout rather than what may/may not be installed on the system.
This includes the perl script in bin/ which land in /usr/bin normally.
2010-05-23 21:31:12 -03:00
Devan Goodwin
ebf9fd56fd Better output after tagging. 2010-05-23 20:32:39 -03:00
Devan Goodwin
171eae95ef Display rpms build on successful completion. 2010-05-23 20:21:31 -03:00
Devan Goodwin
3583cffa82 Added tito tag --undo.
Will undo the most recent tag for the current package. The tag must not
have been pushed to the remote repo, and must be the most recent commit
in your branch.
2010-05-23 20:16:27 -03:00
Devan Goodwin
55d2e86be3 Bump versions in setup.py during tagging if possible. 2010-05-23 12:06:15 -03:00
Devan Goodwin
2cd407dfe9 Make lib_dir optional and configurable. 2010-05-23 10:47:50 -03:00
Devan Goodwin
0149172278 Add rel-eng/lib/ to Python path for custom tito code. 2010-05-23 10:22:34 -03:00
Devan Goodwin
c12b769a90 Remove patching strategy.
Forgot you could easily do this by sub-classing Builder and overloading
_generate_patches().
2010-05-23 09:35:03 -03:00
Devan Goodwin
e0f3e82ea3 Refactor upstream patching to strategy.
Will allow projects to swap in more advanced strategies for patching
their upstream projects.

Also renaming SatelliteBuilder to UpstreamBuilder.
2010-05-20 23:11:23 -03:00
Devan Goodwin
784698e46f Add option to auto-install rpms after build.
-i or --install to auto-install any binary rpms generated during tito
build.
2010-05-15 19:16:22 -03:00
Devan Goodwin
008829db26 Fix bad variable reference for cvs buildable projects. 2010-05-15 18:49:42 -03:00
jesus m. rodriguez
847762d2ae better error messages 2010-05-11 13:07:38 -04:00
Devan Goodwin
1ba3f546f6 Remove check for changelog with today's date.
Most everyone uses auto-changelog now so this was just causing problems
for anyone tagging twice in one day. If you use --no-auto-changelog,
we'll assume you know what you're doing.
2010-05-04 09:34:00 -03:00
jesus m. rodriguez
47c32403e6 allow user to specify an changelog string for new packages. 2010-04-29 15:42:12 -04:00
jesus m. rodriguez
d2174be438 need to shorten the commit id for NoTgzBuilder 2010-04-29 13:52:24 -04:00
jesus m. rodriguez
967bf8b0ba use latest commit instead of HEAD for --test. 2010-04-29 12:55:39 -04:00
jesus m. rodriguez
37a4f53182 allow tito to understand pkg names with macros.
This change fixes the problem with rpms which use macros as part of the
Name definition. For example, 'Name: rubygem-%{gemname}' would normally
result in a tag called 'rubygem-%{gemname}-1.0.0-1' which is clearly
not what the developer intended.

I switched the get_project_name method to use rpm instead of a
cat | grep | awk combo.

This wonderful rpm command takes care of expanding the macros for us.

rpm -q --qf '%%{name}\n' --specfile %s 2> /dev/null |
    head -1" % spec_file_path)
2010-04-28 11:29:51 -04:00
jesus m. rodriguez
e49768cdf1 use short sha1 when generating filenames. 2010-04-26 23:00:08 +08:00
jesus m. rodriguez
11e0090257 add support for passing in the commit count 2010-04-26 23:00:08 +08:00
jesus m. rodriguez
1c93f43c11 init should commit packages dir.
Reworked InitModule to create a readme file under the
rel-eng/packages directory so that we can commit the directory to
git, since empty dirs are ignored. Plus the readme helps explain
what the directory is for.
2010-04-05 15:37:56 -04:00
Devan Goodwin
9575e82411 Port minor config changes from spacewalk.git.
Taken from spacewalk.git commits:
e443533d5aa9f98d01f3152bd5ebaac3ee0f2e52
8da139a7b75f380cd1af1c1f748ff4c23c67dfa7
2010-03-16 10:47:52 -03:00
Mike McCune
55fa1bccd1 more detailed error message to remind user 2010-03-09 08:48:19 -04:00
Devan Goodwin
20bcc3b829 Adding TODO. 2010-01-04 12:04:34 -04:00
Devan Goodwin
2665cd6e4e Spec cleanup. 2009-10-19 21:03:08 -03:00
Devan Goodwin
6b37722767 Automatic commit of package [tito] release [0.1.1-2]. 2009-10-19 20:58:58 -03:00
Devan Goodwin
a2b17e93c0 Automatic commit of package [tito] release [0.1.1-1]. 2009-08-25 23:18:17 -03:00
Devan Goodwin
7eee4dd004 Complete AUTHORS file. 2009-08-25 23:15:52 -03:00
Devan Goodwin
5a5d4d253c Automatic commit of package [tito] release [0.1.0-1]. 2009-08-25 11:40:32 -03:00
Devan Goodwin
ed94e170e9 Automatic commit of package [tito] release [0.0.4-1]. 2009-08-24 12:17:44 -03:00
Devan Goodwin
7acf61af13 Hack to fix import of tagger/builder on Python 2.4. 2009-08-24 11:35:30 -03:00
Devan Goodwin
fc40bdf1c8 Revert "Allow get_class_by_name to do all the importing itself"
This reverts commit 83aba138ec.
__import__ takes no arguments with Python 2.4, which we need to support
for the time being.
2009-08-10 22:27:00 -03:00