Commit graph

140 commits

Author SHA1 Message Date
Devan Goodwin
408b3a1367 Add missing dep on libxslt.
Only surfaces on some OSes but still.
2011-01-12 16:42:46 -04:00
Devan Goodwin
612e3f9328 Fix test builds in koji.
If multiple koji tags are configured, the srpm method was being called
several times, which would attempt to set the 'test' version in a copy
of the spec file on disk. That file was being re-used on each run of
srpm, so the test version kept growing and growing.
2011-01-12 16:42:26 -04:00
Devan Goodwin
0f19fdd1d4 Automatic commit of package [tito] release [0.3.0-1]. 2011-01-05 14:33:28 -04:00
Miroslav Suchý
dd45b47eda implement --only-tags option for builder class
Build in koji only for specified tags. Can be specified multiple times.
2010-12-09 12:13:23 +01:00
Miroslav Suchý
b8a0e7dccf create functions __is_whitelisted() and __is_blacklisted()
merge common code
2010-12-09 11:42:52 +01:00
Miroslav Suchý
7834bf46d8 implement --list-tags option for builder
this should get plain list. One tag per each line. Eg.:
dist-5E-sw-1.3-candidate
dist-f13-sw-1.3-candidate

if run --list-tags --debug, it should list all tags with explanation
why it is included or not listed. E.g:
dist-5E-sw-1.3-candidate
dist-f13-sw-1.3-candidate whitelisted
dist-f14-sw-1.3-candidate blacklisted
2010-12-09 11:29:56 +01:00
Miroslav Suchý
6d5e38793a simplify builder __init__ params
current state of __init__ params is bloated, more params are on the way...
lets pass whole optparse object
2010-12-09 10:37:17 +01:00
Miroslav Suchý
807aaa45da add option --scratch to builder class 2010-12-07 16:35:06 +01:00
Miroslav Suchý
4555676e3b correct typo "bump-bump-release" 2010-12-06 13:15:59 +01:00
Miroslav Suchý
4c3e08e87e add missing parentheses
addressing:
  File "/usr/lib/python2.6/site-packages/tito/distributionbuilder.py", line 26, in patch_upstream
    % self.rpmbuild_gitcopy, self.project_name, self.upstream_version, self.build_version, self.git_commit_id)
TypeError: not enough arguments for format string
2010-12-06 11:44:41 +01:00
Miroslav Suchý
07d1aee4ff do not throw traceback if you hit Ctrl+C during Auto-instaling
addressing:
Auto-installing packages:
   sudo rpm -Uvh --force /tmp/spacewalk-build/x86_64/subscription-manager-0.93.2-1.el6.x86_64.rpm /tmp/spacewalk-build/noarch/python-rhsm-0.93.2-1.el6.noarch.rpm /tmp/spacewalk-build/x86_64/subscription-manager-gnome-0.93.2-1.el6.x86_64.rpm /tmp/spacewalk-build/x86_64/subscription-manager-debuginfo-0.93.2-1.el6.x86_64.rpm
[sudo] password for msuchy:
Traceback (most recent call last):
  File "/usr/bin/tito", line 22, in <module>
    CLI().main(sys.argv[1:])
  File "/usr/lib/python2.6/site-packages/tito/cli.py", line 98, in main
    return module.main(argv)
  File "/usr/lib/python2.6/site-packages/tito/cli.py", line 386, in main
    return builder.run(self.options)
  File "/usr/lib/python2.6/site-packages/tito/builder.py", line 168, in run
    self._rpm()
  File "/usr/lib/python2.6/site-packages/tito/builder.py", line 261, in _rpm
    run_command(cmd)
  File "/usr/lib/python2.6/site-packages/tito/common.py", line 106, in run_command
    (status, output) = commands.getstatusoutput(command)
  File "/usr/lib64/python2.6/commands.py", line 56, in getstatusoutput
    text = pipe.read()
KeyboardInterrupt
2010-11-29 14:58:00 +01:00
Miroslav Suchý
bc5b7bd7e6 allow child taggers to control commit message 2010-11-26 17:04:02 +01:00
Miroslav Suchý
f3a70190e3 this does not work for module.module.class 2010-11-26 16:55:53 +01:00
Miroslav Suchý
7c3c04f796 add new tagger: zStreamTagger - bump up release part after dist tag 2010-11-26 16:55:11 +01:00
Miroslav Suchý
64fdac6c79 add new build class distributionbuilder 2010-11-25 17:57:00 +01:00
Paul Morgan
8c812d0854 workaround old version of asciidoc
Old versions of asciidoc parse lines incorrectly
when two tildes appear on the same line. This
works around the issue by using HOME environment variable.
The error in the old version of asciidoc causes
xsltproc to fail on mismatched nesting of tags.
2010-11-05 15:41:20 -03:00
Devan Goodwin
a53a93fc0b Add dependency on GitPython.
Will slowly work to transition to this library rather than manage our
own git commands and output parsing.
2010-11-02 14:37:44 -03:00
Devan Goodwin
adb4e9d5e9 Merge branch 'master' into gitpy 2010-11-02 14:17:48 -03:00
Paul Morgan
9e57fc3773 Better error-reporting when spec file has errors
Fix commit 81daa0625b
Require rpmlint and suggest rpmlint -i when rpmbuild bails
2010-10-28 17:13:11 -03:00
Miroslav Suchy
48b1dbe927 if we grep rpmbuild output for some string, we have to switch to C locale
addressing:
WARNING: rpmbuild directory already exists, removing...
Building package [spacewalk-config-1.2.2-1]
Wrote: /tmp/tito/spacewalk-config-1.2.2.tar.gz
Zapsáno: /tmp/tito/spacewalk-config-1.2.2-1.fc13.src.rpm

ERROR: Unable to locate 'Wrote: ' lines in rpmbuild output
2010-10-25 10:09:22 -03:00
Mike McCune
81daa0625b Adding more helpfull error message to show user what is busted
Shows the user the rpm command to get a detailed parse error so
noobs like me don't have to repeatedly google what the simple parse
syntax is.
2010-10-12 14:15:20 -03:00
Devan Goodwin
f9050d2ba5 Fix rpm command suggestion for broken specs.
The 'f' was breaking queries on EL5, suspect it's not needed at all.
2010-09-29 09:19:53 -03:00
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
c34b53cbb0 Merge branch 'master' into gitpy 2010-05-25 22:25:36 -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
dc27216b51 Add some multi-project builder tests. 2010-05-24 23:16:49 -03:00
Devan Goodwin
7e8017571f Port multi-project git tests to use GitPython more. 2010-05-24 14:59:50 -03:00
Devan Goodwin
73413b30bd Better tag undo test. 2010-05-24 13:51:48 -03:00
Devan Goodwin
b57db9ea98 Merge branch 'master' into gitpy 2010-05-24 11:35:55 -03:00
Devan Goodwin
a1df94fdc1 Respect offline setting during undo tag. 2010-05-24 11:35:19 -03:00
Devan Goodwin
a29185f8c5 Port remaining single project tests to new format. 2010-05-24 11:35:07 -03:00
Devan Goodwin
bd84de04c7 Better test repo/project creation. 2010-05-24 11:26:22 -03:00
Devan Goodwin
9ab84803b7 Fix bad tito script args. 2010-05-24 11:13:07 -03:00
Devan Goodwin
e49b6f77cf Begin testing with GitPython. 2010-05-24 00:56:30 -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