summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-03-03Revert "buildpackage-rpm: always create tarball for native packages"Markus Lehtonen1-1/+1
Fixes: DEVT-215 This reverts commit efc490c4a8da5ce7a0bd1bf4a20009c3a445bb47. Change-Id: I2109f7ff48384a3b1190a73a3471bdc67f6d2427 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-03-03debian packaging: fix rpm build deps for Ubuntu 14.10Markus Lehtonen1-0/+2
Dependencies of python-rpm got broken in Ubuntu 14.10 at the update to rpm v4.11.2-3ubuntu0.1. This change is a work around for that. Change-Id: I76a912e6e68b83e8e0d667fa881c6f35450c8b2c Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-08-28Tizen release 0.6.15-20140828tizen/0.6.15-20140828debian/0.6.25Markus Lehtonen3-4/+89
Change-Id: Ida5b65020a0e9f566aef3d86f5536c7581fdbd01 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-08-21rpm packaging: use macro for python binaryLi Jinjing1-3/+3
For fedora distro, when building git-buildpackage rpm packages in the buildroot, /bin/python is called to do python setup.py actions during rpmbuild,which leads to /bin/python is taken as requirement of git-buildpackage-rpm-0.6.15-0.noarch.rpm automatically, resulting in: Install gbs with dnf command in fedora distro will raise error: nothing provides /bin/python needed by git-buildpackage-rpm-0.6.12-59.1.noarch Fixes: DEVT-197 Change-Id: I30169a506d7f92aed759124c40beb2803c196218 Signed-off-by: Li Jinjing <jinjingx.li@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-08-20Add PKGBUILD to support arch linuxJunchun Guan1-0/+83
Three split packages: git-buildpackage-{common,rpm,doc} Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
2014-07-25rpm tests: add unit tests for buildpackage-rpmMarkus Lehtonen4-7/+757
Change-Id: If8a5cce2d43a8dffed6999059a84b3f6040eebdd Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21rpm tests: disable one anomalous pylint errorMarkus Lehtonen1-0/+4
Change-Id: Ic9b1d4fefaf1062b752c55e372b3644630747d36 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21packaging: depend/recommend rpmbuildMarkus Lehtonen2-0/+6
Change-Id: Ifd5402f93a078eb97ff504eab1dbbf1e2d7c6ca1 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21buildpackage-rpm: fix one error messageMarkus Lehtonen1-1/+2
Change-Id: I1985f1c4dc208e1b9c18d0b4dc570d1c73c4c0e0 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21buildpackage-rpm: drop unneeded exceptionMarkus Lehtonen1-3/+0
We will never get here as parse_spec() always returns GbpError. Change-Id: I3ccf9826caeace00c9f1d136e51e64833a157f50 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21buildpackage-rpm: handle invalid keys in orig prefixMarkus Lehtonen1-4/+7
Gracefully handle invalid keys in the --git-orig-prefix format string. Change-Id: I1948ed7b34cdd806a0154d8cf354c5095388988f Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21buildpackage-rpm: minor refactorMarkus Lehtonen1-7/+4
Change-Id: Ibe43e3e948cb8854dadfc03449854ef044370237 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21buildpackage-rpm: get rid of prepare_export_dir()Markus Lehtonen1-7/+1
No need to mangle the export directory. Change-Id: I686cb9d23ea9e95206cdd1c55627b3ca14e83dad Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21buildpackage-rpm: remove some outdated/unnecessary exception handlingMarkus Lehtonen1-5/+0
Change-Id: I01b75b3ff1ba7f483cb6c9b5648b11dde858ed80 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21buildpackage-rpm: add '--git-native' optionMarkus Lehtonen2-3/+8
Can be used to explicitly configure a package as native or non-native. Default behavior is still to guess based on the existence of upstream branch. Change-Id: I09c3797fd3d88285ee1e920f4c40e3b22c06916a Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21buildpackage: refactor tarball compressionMarkus Lehtonen1-18/+30
Introduce a new function for running the compressor commands. Unifies exception/error handling - GbpError will be returned if the compressor fails. Change-Id: I7d876f01d1855a7b6264f6298a16313045dc6873 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21buildpackage-rpm: remove some unused variablesMarkus Lehtonen1-5/+1
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21buildpackage-rpm: add missing docstringsMarkus Lehtonen1-0/+5
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-21buildpackage-rpm: remove unused importsMarkus Lehtonen1-5/+2
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-18packaging: recommend/require zipmergeMarkus Lehtonen2-1/+4
Needed by CatenateZipArchive(). Change-Id: I8f25d9da418414bbcc2eff7797b4f57ee5c69e1f Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-18rpm-packaging: recommend/require unzipMarkus Lehtonen1-0/+2
Unzip is needed for handling zipped upstream sources. Change-Id: I21bb57ad96edece7041d209b1f8264e6ec8465de Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-18rpm tests: update component test dataMarkus Lehtonen2-49/+49
Adds pq/devel branch and .gitignore file to gbp-test package. Change-Id: Ia6dcbe875433bba00559bd65d9547a8b43e15e97 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-18rpm tests: remove RepoManifest.add_project()Markus Lehtonen1-11/+0
This functionality is moved to the rpm testdata submodule. Change-Id: I0824dbabe84fa75e1053c2508cc86d894dc295e6 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-18ComponentTestBase: add dirs argument to _check_repo_state()Markus Lehtonen4-31/+35
Change-Id: I01a421921c8783864d2a5c06d3299fc1ec5d13eb Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-18log: fix auto colorizing for custom streamsMarkus Lehtonen1-1/+1
Check for existence of isatty() method in the stream object. Some custom streams (e.g. in nose) do not necessarily have this. Change-Id: I4c8386dfd6f016f926f2eb70b953b19095d585c2 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-18log: don't automatically setup gbp-specific loggerMarkus Lehtonen2-6/+19
This makes it nicer to use gbp.* modules (e.g. gbp.git) in other software projects which may have their own logging setup. Now, importing gbp.* modules won't force-setup logging. Change-Id: I3e9cfe27c67cdd74c32ceba5dad786cc694ad7b6 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-11buildpackage-rpm: remove too general exception catchingMarkus Lehtonen1-3/+0
There should be no reason to catch general Exception here. Change-Id: I1857bf7010365cc6044ff2783eda55dda35e6507 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-11buildpackage-rpm: don't crash on invalid vcs format stringsMarkus Lehtonen1-1/+4
Change-Id: I307c82600b0e1336e54016c95cac6ea955adc337 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-11buildpackage-rpm: add --git-no-build optionMarkus Lehtonen1-1/+10
Replaces and deprecates --git-export-only. The new option name is way better in line with the other option names. Change-Id: If54edf46eccaad4449ffe6b895b4958395e55c2e Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30buildpackage_rpm: always run cleaner hookMarkus Lehtonen1-2/+1
Change-Id: Ia13115e40a186e83c93cee3fe559005eb85858a3 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30buildpackage_rpm: fix crash when running prebuild hookMarkus Lehtonen1-1/+1
GitRepository.git_dir is not callable. Change-Id: Ibc2040b8a36e60a9499b29ea675caa7a8fc8c968 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30tests/testutils: add directories arg to ls_* functionsMarkus Lehtonen1-7/+8
With this you can exclude directories from the listing returned by the ls_tar(), ls_zip() and ls_dir() functions. Change-Id: I8d586489a277c227a7fb61801e0b774f11e7a67e Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30buildpackage_rpm: check submodules from the exported treeishMarkus Lehtonen1-1/+1
And not from the current working copy. Change-Id: I5320bd977073e7d69c02782a8a232b4a622553e1 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30GitRepository/has_submodules: add treeish argumentMarkus Lehtonen1-4/+9
For defining a Git treeish which to look into, instead of the current working copy. Change-Id: I27abd99f0416bd4300953d3c1bae2d99de3ab6c0 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30ComponentTestBase: ignore system and user configMarkus Lehtonen1-0/+3
User might have a system and/or user specific gbp config files. Disable these config files so that they don't affect the component tests. Change-Id: I04b83680016690ffa5a2433ad16e9968e54f6f4a Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30ComponentTestBase: add ls_tree() methodMarkus Lehtonen2-7/+7
Change-Id: I53b06b41f613baad038117f55c27e7ebdaaadd7e Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-30ComponentTestBase: add check_files() methodMarkus Lehtonen2-12/+10
Change-Id: If23365cde15c2659aad039f19984a97968cd4545 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-17import-orig-rpm: download tarball into parent directoryMarkus Lehtonen1-1/+1
Prevents dirtying of the current Git working directory. Change-Id: I6eca70b647130a380ba67d5b90fc23354b3974ea Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-16buildpackage-rpm: always create tarball for native packagesMarkus Lehtonen1-1/+1
If the package is native, always (re-)create the source tarball, even if --git-no-create-orig is used. Not creating the tarball does not make much sense (and most probably just causes problems and confusion): for native packages there is no place for external tarball and no patches so we need to always have the correct sources (i.e. the exported revision) in the tarball. Change-Id: I3d4a46150a017de499d19ec4ae168e6f642325bd Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-16buildpackage-rpm: fix exit code in case of GitRepositoryErrorMarkus Lehtonen1-1/+1
Change-Id: I0afa3d5b744a912c63af66f2add9eb68bdc48f5b Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-12notify: catch RuntimeError when importing pynotifyMarkus Lehtonen1-1/+1
Work around a problem in some distros (e.g. Fedora) where "import pynotify" crashes in RuntimeError in some cases, e.g. when DISPLAY env variable is not set. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-06gbp-dch: fix handling of the '--meta' optionMarkus Lehtonen2-3/+6
Make it effective again - previously it was totally ignored. Also, change it's default value to True to match the current behavior. Change-Id: I0fb1b5bb99aa8f622a7c52316e9320973333bad5 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-06rpm-ch: implement --meta-bts optionMarkus Lehtonen5-10/+54
This gives the user the possibility to define what meta tags (in git commit message) git-rpm-ch recognizes as bug tracking system references. Or, makes it possible to disable bts meta tag tracking altogether. Change-Id: I7125ac951bf13816d43f1854868b15188bb92042 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-06rpm.policy: don't allow leading whitespace in bts meta tagsMarkus Lehtonen1-1/+1
Change-Id: Ib2d39739b4609c088b04b286adfb6aeb5e07f78a Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05rpm-ch: implement --commit-msg optionMarkus Lehtonen3-4/+39
Change-Id: I10e2d4ad30dfd02c73fd0f318375715202ec36c2 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05rpm-ch: implement --commit optionMarkus Lehtonen3-13/+53
Change-Id: I89b05175d3c4f3def796b20b4e65c53af7d96d13 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05buildpackage-rpm: new 'commitish' keyword for spec vcs tagMarkus Lehtonen1-14/+20
Add a new keyword '%(commitish)s' that can be used in the --git-spec-vcs-tag option. This will be translated to the sha1 of the commitish (i.e. tag or commit). That is, if you export a tag you will get the sha1 of the tag object - not resolving to a commit object unlike '%(commit)s' does. Change-Id: Ia764e15ac0dc090dde9f8e709f31f66e62120abb Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05tristate: implement __nonzero__() methodMarkus Lehtonen1-0/+11
Returns False if tristate is 'off', otherwise True ('on' or 'auto'). Change-Id: I6ade27fc85c6d05ed69dc694495b70725070d9c5 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05docs: manpages for the rpm toolsMarkus Lehtonen17-0/+2262
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05packaging: rebase on top of upstream version 0.6.15Markus Lehtonen3-2/+11
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>