Commit graph

391 commits

Author SHA1 Message Date
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
Miroslav Suchý
9bcee4f80c document DEBUG environment variable 2013-04-24 22:57:55 +02:00
Miroslav Suchý
7cc7cdae66 document environment variable EDITOR for tagger 2013-04-24 22:57:55 +02:00
Devan Goodwin
36a5e7b767 Fix bad copy paste in releaser. 2013-04-24 14:49:30 -03:00
Devan Goodwin
5ac54f3b0e Add F19 releaser. 2013-04-24 13:14:10 -03:00
Devan Goodwin
fa705ff825 Merge pull request #72 from spkane/master
Configure rsync to preserve timestamps and file permissions
2013-04-24 09:08:13 -07:00
Devan Goodwin
e8ca22b1e8 Merge pull request #74 from sosiouxme/release-test
Enable tito release --test for git releasers
2013-04-24 09:06:38 -07:00
Devan Goodwin
9ee3e51a55 Merge pull request #68 from xsuchy/pull-req-scl1
new option --scl which will allows you to build srpm for software collection
2013-04-24 09:05:08 -07:00
Miroslav Suchý
f023538a80 document scl option for rsync releaser 2013-04-24 16:12:12 +02:00
Miroslav Suchý
53d186223c document RSYNC_USERNAME 2013-04-24 16:12:12 +02:00
Miroslav Suchý
2bf66f1e96 add SCL support to RsyncReleaser 2013-04-24 16:12:12 +02:00
Miroslav Suchý
700d3ba072 remove empty lines from rpm output
because output of:
rpm -q --qf '%{name}'  --eval '%undefine scl' --specfile rubygem-robotex.spec
is:

rubygem-robotex
(i.e. two empty lines, then the output)
2013-04-24 16:12:11 +02:00
Miroslav Suchý
88cbab1758 use SCL for KojiReleaser 2013-04-24 16:12:11 +02:00
Miroslav Suchý
994f3394c7 move scl rpmbuild options to function and allow to build rpm using SC 2013-04-24 16:12:11 +02:00
Miroslav Suchý
637d8ec3fa new option --scl which will allows you to build srpm for software collection 2013-04-24 16:12:11 +02:00
Luke Meyer
8fafa710f4 fix the whitespace - tabs->spaces 2013-04-24 09:42:39 -04:00
Luke Meyer
c8e9b941ab add --yes on tito release to keep from requiring input 2013-04-24 09:42:39 -04:00
Devan Goodwin
bdcaf75b6a Merge pull request #69 from xsuchy/pull-req-31
#31 - if build fails due missing dependecies, suggest to run yum-builddep
2013-04-24 05:53:04 -07:00
Luke Meyer
df27d8bb11 Enable tito release --test for git releasers
* Store the --test flag on the releaser and pass it to the builder
* With --test in effect, have the builder update the spec file
* When the builder does so it also updates the build_version to include git hash
2013-04-22 16:46:54 -04:00
Sean P. Kane
c87113a2a9 Add ability to customize rsync arguments 2013-04-18 13:25:28 -07:00
Devan Goodwin
60d3f577c0 Fix broken extraction of bugzilla numbers from commits.
Copied files was never getting populated, so files we're not being git
added properly to show up in diff.
2013-04-18 14:45:44 -03:00
Devan Goodwin
8dce61a12b Re-add write permission fedpkg takes away.
Uploading new sources with fedpkg seems to make files read only after
uploaded in an attempt to maintain their checksum most likely.

tito already generates files with consistent checksums, and this is
breaking if you release to Fedora/RHEL and then try to release anywhere
else.
2013-04-18 13:44:28 -03:00
jesus m. rodriguez
3c8569f7ac Merge pull request #71 from xsuchy/pull-req-scratch
document SCRATCH environment variable
2013-04-18 07:24:49 -07:00
jesus m. rodriguez
6169ecfd2f Merge pull request #70 from xsuchy/pull-req-no-auto
document NO_AUTO_INSTALL option
2013-04-18 07:19:16 -07:00
jesus m. rodriguez
0d8408419e Merge pull request #67 from xsuchy/pull-req-only
document ONLY_TAGS variable
2013-04-18 07:18:40 -07:00
Sean P. Kane
83be90ee4b Ensure rsync preserves timestamps and permissions 2013-04-17 14:15:16 -07:00
Miroslav Suchý
3dc94aba2f document SCRATCH environment variable 2013-04-16 10:44:09 +02:00
Miroslav Suchý
f3c95ffe10 look for spec file in project directory 2013-04-16 10:24:08 +02:00
Miroslav Suchý
64008fd8ca document NO_AUTO_INSTALL option 2013-04-15 21:17:08 +02:00
Miroslav Suchý
9ce9442642 31 - if build fails due missing dependecies, suggest to run yum-builddep 2013-04-15 20:21:59 +02:00
Miroslav Suchý
d069bf4a8a document ONLY_TAGS variable 2013-04-15 11:43:23 +02:00
Devan Goodwin
1a81dbfddf Merge pull request #65 from xsuchy/pull-req-spec2
Fail if there are two spec files in directory
2013-04-05 06:16:25 -07:00
Devan Goodwin
a27ed178b8 Merge pull request #66 from xsuchy/pull-req-binary
Do not create patch if there are binary files
2013-04-05 06:15:26 -07:00
Miroslav Suchý
be4138f267 Do not create patch if there are binary files
"git diff" can accept --binary, which will produce diff with binary content. But patch does not understood
such diff, so we are doomed. Diff with binary file will produce

Binary files /dev/null and b/app/assets/images/false.png differ
diff --git a/app/assets/images/foreman.png b/app/assets/images/foreman.png
new file mode 100644
index 0000000..8815824

And patch will accept such syntax but will not create the file. Not even empty one.
So this result in silently throwing away some changes.
2013-04-04 17:22:03 +02:00
Miroslav Suchý
1f26dc1cc9 merge common code 2013-04-04 12:28:58 +02:00
Miroslav Suchý
f4d77b6248 Raise error if there are two spec files 2013-04-04 12:28:58 +02:00
Devan Goodwin
f84a0c5a11 Add Fedora 18 releaser. 2013-02-26 08:56:12 -04:00
Devan Goodwin
373139efd5 Add test for recent pull request. 2013-02-26 08:55:54 -04:00
Devan Goodwin
62c85e6466 Merge pull request #64 from spkane/master
Fix for increase_version that makes it underscore aware, and a bit more error tolerant
2013-02-26 04:54:13 -08:00
Sean P. Kane
5db27c5548 Make increase_version _ aware and return original string upon failures
The VersionTagger fails in the spec file contains a number followed
by and underscore. This patch fixes that issue.
increase_version also returned an emtpy vlaue when nothing matched,
which led to a broken spec file. It now returns the original,
unmodified value instead.
2013-02-25 22:40:07 -08:00
Devan Goodwin
023c6dcc86 Merge pull request #63 from xsuchy/pull-req-sc3
Support tagging packages from Software Collections
2013-02-20 09:56:13 -08:00
Miroslav Suchý
873b2e6bd7 merge common code from tagger and builder 2013-02-20 16:21:40 +01:00
Miroslav Suchý
f1cd07cc76 allow tagger to get values from package config and override values in global_config 2013-02-20 16:21:40 +01:00
Miroslav Suchý
1c08f3595e Allow user to define which package need to be installed before tagging.
This is for supporting tagging software collections (SC), if you have
installed meta package of SC then then name of package is different.
I.e. if you are tagging rubygem-foo package and you have ruby193-build
installed then the name of package is ruby193-rubygem-foo.
2013-02-20 16:21:40 +01:00
jesus m. rodriguez
562ef769df Merge pull request #62 from mbacovsky/tag_checker_issue
Fixed check for existing tag
2013-02-19 11:14:59 -08:00
jesus m. rodriguez
7c8c8887c9 Merge pull request #59 from xsuchy/sources
NoTgzBuilder - do not guess source, get it correctly from spec file
2013-02-19 11:12:22 -08:00
Martin Bačovský
3481e40d77 Fixed check for existing tag
We use suffix in relase number to indicate build in a branch. Builds from master have no suffix.
When we had package-1.2.3-4h built in branch and was trying to tag package-1.2.3-4 in master
the check failed as the new tag was substring of the other tag and grep matches that.
2013-02-19 16:46:50 +01:00
Miroslav Suchý
75efd76b2e do not fail if spec does not have any source
addressing:
Error running command: /usr/bin/spectool --list-files '/tmp/tito-build/rpmbuild-ruby193-d6e54d8c72c34196a4f51ac134c4172b44d9eccae0bLpW/SOURCES/ruby193-1/ruby193.spec' | awk '{print $2}' |xargs -l1 basename
Status code: 31488
Command output: basename: missing operand
Try 'basename --help' for more information.
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 401, in main
    return builder.run(self.options)
  File "/usr/lib/python2.7/site-packages/tito/builder.py", line 194, in run
    self.srpm()
  File "/usr/lib/python2.7/site-packages/tito/builder.py", line 228, in srpm
    self.tgz()
  File "/usr/lib/python2.7/site-packages/tito/builder.py", line 479, in tgz
    result = run_command(cmd)
  File "/usr/lib/python2.7/site-packages/tito/common.py", line 217, in run_command
    raise Exception("Error running command")
Exception: Error running command
2013-02-19 09:47:31 +01:00
jesus m. rodriguez
0615849802 Merge pull request #60 from practicalweb/master
Add install Instructions
2013-01-25 06:55:26 -08:00