summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-03-03Tizen release 0.6.15-20150303release-for-gbsV0.23Markus Lehtonen3-1/+15
Change-Id: I631e30aff42fd5acd90b1b3d535a0e38f00aaa12 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
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>
2015-02-17log: don't crash getLogger if getting the root loggerMarkus Lehtonen1-1/+1
The root logger won't have the gbp-specific default_handlers attribute. Change-Id: I0b81fdfbe70fe16ce3fd226248b83a4f6a17fc7f Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-06Tizen release 0.6.22-20150206tizen/0.6.22-20150206Markus Lehtonen3-5/+107
Change-Id: I26238668518048f1684563398f6d097b8c7dbbff Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-19Introduce submit-bb toolMarkus Lehtonen2-0/+145
This is a Tizen-specific tool for creating and pushing special submit tags. Change-Id: Id014ce2aeced75f6506cd8559adcd787f958e6b4 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-19GitRepository.create_tag: add 'annotate' argumentMarkus Lehtonen1-2/+6
For forcing the creation of annotated tags. Causes the an editor to be spawned if no message is given. Change-Id: I8ec7e195cf7ae997606af1d887f04e84a14b2abc Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-19GitRepository.create_tag: use GitArgs classMarkus Lehtonen1-7/+7
Change-Id: I8ead4dda504152bde4c35ee0c03d6e3295820fd6 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-19Introcude clone-bb toolMarkus Lehtonen3-40/+215
This is a new tool for helping to clone remote per-package Git repositories when working in BitBake-based "full distro" build environment. This is useful in the case that individual packages are actually maintained in per-package Git repositories (like Tizen). That is, the full distro repository that the developer operates in is composed of the packaging meta data from the individual per-package repositories. When willing to contribute to a package the developer would use clone-bb to clone the correct per-package repository and make his changes there. NOTE: clone-bb uses GBP_PACKAGING_REPO variable to determine the remote repository URI. This variable should be defined in the package recipes in order to make clone-bb usable. Change-Id: I95fb3aa907dc78c55e042f16282a139d5ff3ce2a Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-19Introduce buildpackage-bb toolMarkus Lehtonen4-8/+553
Initial version of the tool for building BitBake packages from Git. NOTE: The buildpackage-bb tool itself is able to operate even without an initialized BitBake build environment although the build likely fails in this case. However, this makes it possible to export the packaging meta data, for example. Change-Id: I86204e477308da51f71fab76150ede4bd90e4d6e Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-19Introduce pq-bb toolMarkus Lehtonen3-9/+835
This is a tool for managing patch-queues for packages maintained in the BitBake packaging format (.bb recipes). Change-Id: I7c2815c05495deb731106fbfea911494ac4984ac Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-19Introduce import-bb toolMarkus Lehtonen6-0/+573
This is the first tool in an effort of enabling gbp in the BitBake build environment. Gbp-import-bb is a tool for importing packages from a BitBake-based "combined" distro repository into individual per-package Git repositories. Change-Id: I86e27d8a1817eae30c3f828cea70b06162543000 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-18log: don't initialize handlers in GbpLogger initMarkus Lehtonen1-11/+19
Better compatibility with 3rd party modules that have their own logging initializations. Change-Id: Ic91ab54c70537061c3e76dd6317ceeec888fab36 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-18rpm packaging: include python egg-info in -commonMarkus Lehtonen1-1/+1
We need this for the Python pkg_resources. Change-Id: I74c7d466040279b8f34ec357b6947fa2f7c29a15 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-18patchseries: strip numbering when guessing subject from filenameMarkus Lehtonen1-1/+7
Change-Id: I58c4f8871411dae15d0e0e4246f0eebe65e3967d Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-03UpstreamSource: suppress stderr from tar in _determine_prefix()Markus Lehtonen1-1/+1
Change-Id: I3a0e51de2114e2aa9f9a12c41a9ed4c242fa2127 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-12-03rpm: suppress stderr when unpacking src.rpmMarkus Lehtonen1-1/+1
Change-Id: I055e94f905048141268ceb9172b4e10fcb5cdc58 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-21buildpackage-rpm: look for remote upstream branchesMarkus Lehtonen2-2/+18
Consider remote branches, too, while looking for the upstream branch when trying to guess if a package is native or not. Change-Id: I3dbbb49816d1d294d81209ea5ab5870e053fd66a Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-18rpm tests: use eq_ and ok_ from nose toolsMarkus Lehtonen1-77/+74
Provides better error messages as is more consistent as eq_ was already used in some test cases. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14Tizen: change python-rpm module name to rpm_tizenMarkus Lehtonen1-1/+1
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14log: don't propagate to ancestor loggersMarkus Lehtonen1-0/+2
Change-Id: I6548dcfe5ba2f779b9d9244ad1eb88fa92c2180e Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm packaging: enable CentOS 7Markus Lehtonen1-4/+8
Fix dependencies and enable git-buildpackage(-deb) subpackage for CentOS 7. Also fixes one excess dependency for Fedora: no need for dpkg-devel, dpkg-dev is enough. Change-Id: I2c3929ae623c9694aa9afcb8a4e3155696179f05 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14GitRepository/__git_inout: correctly handle input errorMarkus Lehtonen1-1/+6
Change-Id: I3c9b8851490c05719f77a9519418a98f572d68e3 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: better error messageMarkus Lehtonen1-1/+1
Change-Id: Iaadc614e9ed5df2e943eed71511559d0b76e0227 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14readme: we do have manpages for rpm toolsMarkus Lehtonen1-5/+1
Change-Id: Ieeeb5dde264d220d4d457e077325c232bd3ec326 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14packaging: rebase on top of upstream version 0.6.22Markus Lehtonen3-2/+11
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14Tizen release 0.6.15-20140828Markus Lehtonen3-2/+96
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14Add 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-11-14rpm tests: add unit tests for buildpackage-rpmMarkus Lehtonen4-7/+757
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: fix one error messageMarkus Lehtonen1-1/+2
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: drop unneeded exceptionMarkus Lehtonen1-3/+0
We will never get here as parse_spec() always returns GbpError. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: handle invalid keys in orig prefixMarkus Lehtonen1-4/+7
Gracefully handle invalid keys in the --git-orig-prefix format string. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: minor refactorMarkus Lehtonen1-7/+4
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: get rid of prepare_export_dir()Markus Lehtonen1-7/+1
No need to mangle the export directory. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: remove some outdated/unnecessary exception handlingMarkus Lehtonen1-5/+0
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-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. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: remove some unused variablesMarkus Lehtonen1-5/+1
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: add missing docstringsMarkus Lehtonen1-0/+5
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: remove unused importsMarkus Lehtonen1-5/+2
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm tests: update component test dataMarkus Lehtonen2-49/+49
Adds pq/devel branch and .gitignore file to gbp-test package. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm tests: remove RepoManifest.add_project()Markus Lehtonen1-11/+0
This functionality is moved to the rpm testdata submodule. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: remove too general exception catchingMarkus Lehtonen1-3/+0
There should be no reason to catch general Exception here. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: don't crash on invalid vcs format stringsMarkus Lehtonen1-1/+4
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-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. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage_rpm: always run cleaner hookMarkus Lehtonen1-2/+1
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage_rpm: fix crash when running prebuild hookMarkus Lehtonen1-1/+1
GitRepository.git_dir is not callable. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage_rpm: check submodules from the exported treeishMarkus Lehtonen1-1/+1
And not from the current working copy. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-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. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: fix exit code in case of GitRepositoryErrorMarkus Lehtonen1-1/+1
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm-ch: implement --meta-bts optionMarkus Lehtonen5-10/+53
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. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>