summaryrefslogtreecommitdiff
path: root/gbp/scripts
AgeCommit message (Collapse)AuthorFilesLines
2016-05-24Add tar extract patches to solve bad message generated by git(2.7.4) mailinfoyang.zhang1-0/+9
Change-Id: Iaca480434f5f59d9b3cc66e477a9ea9c5c08c276
2016-05-101. Reset to 0.27debian/0.7.4Jun Wang1-10/+0
2. Keep same code with latest release Change-Id: I30588773b0a039c9f5002bf65b5c768a16fb7935
2016-03-09Use vendor to publish in srpm unpackJun Wang2-56/+61
Change-Id: I02f5d8cc11a268c7dd075da6e0064d3fedf72721
2016-03-08Check devel branch codes to be good from latest release tizen/0.6.27-20160302Jun Wang5-76/+82
Change-Id: I87f32c6b28b8835c09004530d7e6e429143dc4bf
2014-12-19Introduce submit-bb toolMarkus Lehtonen1-0/+138
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-19Introcude clone-bb toolMarkus Lehtonen2-40/+176
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 Lehtonen3-8/+544
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 Lehtonen2-8/+438
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 Lehtonen1-0/+457
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-11-21buildpackage-rpm: look for remote upstream branchesMarkus Lehtonen1-1/+11
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-14pq-rpm: better error messageMarkus Lehtonen1-1/+1
Change-Id: Iaadc614e9ed5df2e943eed71511559d0b76e0227 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 Lehtonen1-3/+5
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-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 Lehtonen1-1/+3
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>
2014-11-14rpm-ch: implement --commit-msg optionMarkus Lehtonen1-4/+18
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm-ch: implement --commit optionMarkus Lehtonen1-7/+12
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-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. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: don't create pq branch when switchingMarkus Lehtonen1-5/+1
Pq branch must be created with 'import'. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: implement --retain-history optionMarkus Lehtonen1-25/+74
With this option defined gbp tries to preserve the history when converting. That is, for each commit in the old branch create one corresponding commit in the new orphan packaging branch. This works by dumping packaging files and updating patches for each commit. However, empty commits are not generated - these are caused e.g. by changes in files that are ignored by patch-generation. NOTE! Only valid for the 'convert' action. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: implement --new-packaging-dir cmdline optionMarkus Lehtonen1-2/+10
Used for setting the packaging directory to be used in the new orphan packaging branch. Defaults to --packaging-dir so that the gbp.conf files are more likely to work without modification. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: implement 'convert' subcommandMarkus Lehtonen1-11/+88
The new subcommand is intended to be a one-time-callable command for converting a package to use the "orphan-packaging" development model and git layout (where packaging files are maintained in a separate branch and code development in another branch). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14buildpackage-rpm: patch-export from development branchMarkus Lehtonen1-27/+64
Adds git-buildpackage-rpm --patch-export support for the 'orphan packaging' development model (where packaging files and development sources are kept in separate branches). New functionality: 1. If patch-export is enabled and gbp detects that the current branch has a development/patch-queue branch it exports the patches from there, instead of the tip of the packaging branch. 2. If gbp detects that the current (or exported) branch is a development/patch-queue branch it automatically enables patch-export and exports packaging files from the base branch (instead of the development/patch-queue branch. Also, add a new '--git-patch-export-rev' command line option with which the user can explicitly set the treeish from which patches are generated (i.e. HEAD..<patch-export-rev>) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14import-orig-rpm: get archive from spec fileMarkus Lehtonen1-25/+41
Try to get archive path/filename from spec file if no file name is given on the command line. This should make version bumps more straightforward: just update version number in the spec file and run 'git-import-orig-rpm'. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14import-orig-rpm: implement automatic downloadingMarkus Lehtonen1-1/+6
Automatically try to download the archive if the archive filename points to a remote location. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14import-orig-rpm: implement --create-missing-branches optionMarkus Lehtonen1-8/+15
Create the upstream branch if it does not exist. Use the same option name that import-srpm has. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm-ch: implement '--all' optionMarkus Lehtonen1-2/+7
If defined, git-rpm-ch uses all commits in the Git history. Also, '--since' option is omitted. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm-ch: add --message cmdline optionMarkus Lehtonen1-12/+37
For giving the text for new changelog entry/entries, skipping git commit messages entirely. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm-ch: make it possible to commit/tag the changesMarkus Lehtonen1-10/+60
Implement '--tag' command line option (and other related options for signing) for creating and tagging a release. These correspond the tagging options in git-buildpackage-rpm. The git-buildpackage-rpm tool does not commit anything to git. However, in rpm-ch the '--tag' option causes the changelog modifications (and, all other staged changes) to be committed to git before creating the tag. This makes it possible to create a release and document the packaging/release tag name in the rpm changelog. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14Introduce git-rpm-ch toolMarkus Lehtonen1-0/+429
Initial version of the git-rpm-ch tool which is intended for maintaining RPM changelogs. Supports both spec files and separate "OBS style" changelog files. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: implement '--import-files' command line optionMarkus Lehtonen1-0/+35
For defining the packaging file(s) that will be imported into the development/patch-queue branch. By default, the local gbp conf files are imported in order to try to ensure that gbp sees the same settings on the development/pq branch as on the packaging branch. NOTE: This option does not affect the patch files that are imported. The files defined with this option will appear as new files in one monolithic commit in the development/patch-queue branch. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: bigger refactor of the codeMarkus Lehtonen1-183/+241
Support '%(upstreamversion)s' as a replacable string in the pq branch name. Eliminate some unneeded branch switches that were only needed for finding/parsing the spec file. Now, spec file is directly searched from the git repository (from the 'base' branch) if the command is run when on the pq branch - except for the 'export' subcommand which always switches to the base branch. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: create diff up to the last merge commitMarkus Lehtonen1-0/+14
Before, merge commits broke patch generation, or, (most probably) caused the generated patches to be unapplicable (similar to how git-format-patch behaves). Now, changes up to the last merge commit are squashed into one diff if merge commits are found in the revision list from which patches are to be generated. Individual patches (one per commit) are generated from the last merge commit up to the exported revision. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm: support guessing spec file from git treeishMarkus Lehtonen1-1/+1
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm: change guess_spec() to return SpecFile objectMarkus Lehtonen3-29/+23
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>