tools/git-buildpackage.git
13 months agopq-rpm: fix the mistake of generate_patches. sandbox/xuwc/gbp_0.9.29
wanchao-xu [Tue, 30 Apr 2024 06:16:23 +0000 (14:16 +0800)]
pq-rpm: fix the mistake of generate_patches.

Change-Id: Ieaa9f6e3c9a063a50c25d623e1fe76f0c1926815
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agodebian packaging: introduce -common subpackage.
wanchao-xu [Mon, 29 Apr 2024 09:07:44 +0000 (17:07 +0800)]
debian packaging: introduce -common subpackage.

Split the git-buildpackage into git-buildpackage and git-buildpackage-common. Now there are three binary packages:
- git-buildpackage-common contains the common code for Deb and RPM tools
- git-buildpackage contains the Debian-specific modules/tools
- git-buildpackage-rpm contains the RPM-specific modules/tools

Change-Id: I451e8f82280cc0dd71a397ed1513dc2fce5cbb7b
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agobuildpackage_rpm: create source archive without checking '--git-no-create-orig' option.
wanchao-xu [Mon, 29 Apr 2024 09:07:10 +0000 (17:07 +0800)]
buildpackage_rpm: create source archive without checking '--git-no-create-orig' option.

Change-Id: Ibe4321b94afe8f48377d7c2aa78fd46223997fa9
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agobuildpackage_rpm: fix type error of wc_names keys.
wanchao-xu [Mon, 29 Apr 2024 09:06:09 +0000 (17:06 +0800)]
buildpackage_rpm: fix type error of wc_names keys.

Change-Id: I705af98f19d697c9614f9ae57604985e9a7ebd0c
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agoRpmGitRepository: don't capture the error log of PristineTar.
wanchao-xu [Mon, 29 Apr 2024 06:28:08 +0000 (14:28 +0800)]
RpmGitRepository: don't capture the error log of PristineTar.

All logs of pristine-tar package are displayed by stderr.
If capture the error log of PristineTar, the normal info and debug logs will not be displayed.

Change-Id: Idc7981de6a8e6ad7ec4218f8ecb5606f4adcfff9
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agobuildpackage & buildpackage_rpm: add new choices for '--git-export' option.
wanchao-xu [Mon, 29 Apr 2024 06:19:39 +0000 (14:19 +0800)]
buildpackage & buildpackage_rpm: add new choices for '--git-export' option.

Add support for building different kind of "working copies", when using
the --git-export option:
- 'WC.TRACKED': only use files that are already tracked
- 'WC.UNTRACKED': use untracked files, too
- 'WC.IGNORED': also add files that'd normally be ignored

Using '--git-export=WC' beaves like before.

Change-Id: Iaabe7979a885cfe2f67a26c0b33a1d198f0554dc
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agorpm_ch: check the branch of repo whether exist.
wanchao-xu [Mon, 29 Apr 2024 06:17:04 +0000 (14:17 +0800)]
rpm_ch: check the branch of repo whether exist.

Change-Id: I13feeaed486f4aab5189b0e2619c83fbf465f27c
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agopq: don't drop the pq-branch while working on it.
wanchao-xu [Mon, 29 Apr 2024 05:32:25 +0000 (13:32 +0800)]
pq: don't drop the pq-branch while working on it.

Change-Id: Ie25f5529f1ebf9bc35d3b1355643717c40905997
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agoimport_orig_rpm: introduce gbp import-orig-rpm tool.
wanchao-xu [Fri, 26 Apr 2024 10:33:55 +0000 (18:33 +0800)]
import_orig_rpm: introduce gbp import-orig-rpm tool.

Change-Id: Iadc9525271b2caa91ba115c8a779e5fe3366afba
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agoconfig: add 'packaging-branch' for GbpOptionParser.
wanchao-xu [Fri, 26 Apr 2024 10:19:25 +0000 (18:19 +0800)]
config: add 'packaging-branch' for GbpOptionParser.

Change-Id: Id70a1424621f10e812aff9aff1df6d5e9706fedb
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agoimport_srpm: update the commit message as the old version.
wanchao-xu [Fri, 26 Apr 2024 09:58:07 +0000 (17:58 +0800)]
import_srpm: update the commit message as the old version.

Change-Id: I4d13e65151314b96f6d80fea44771f3cea205e34
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agoRpmGitRepository: set default value of toplevel to false.
wanchao-xu [Fri, 26 Apr 2024 09:57:10 +0000 (17:57 +0800)]
RpmGitRepository: set default value of toplevel to false.

Change-Id: Idc3efd5e3090adb62e4a1e9cfcd821d3371eb60e
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agoclone: set packaging branch after clone.
wanchao-xu [Fri, 26 Apr 2024 09:56:10 +0000 (17:56 +0800)]
clone: set packaging branch after clone.

Change-Id: I9f450e8d2740f7fc81cb6daa9419780b5a776689
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agopq_rpm: fix the generate patches failed issue.
wanchao-xu [Fri, 26 Apr 2024 09:54:57 +0000 (17:54 +0800)]
pq_rpm: fix the generate patches failed issue.

Change-Id: If4efc5c060b4dc8c4e9b302872696cb3edd5c50f
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agorepository: update status() to return string value of file path.
wanchao-xu [Fri, 26 Apr 2024 09:50:50 +0000 (17:50 +0800)]
repository: update status() to return string value of file path.

Change-Id: Idf3cfc2a14ee801bf62fc3b09bf37d8ad51f559f
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agobuildpackage_rpm: fix the export packaging files failed.
wanchao-xu [Fri, 26 Apr 2024 09:24:39 +0000 (17:24 +0800)]
buildpackage_rpm: fix the export packaging files failed.

Fix the export path is invalid.
Fix the param of pq-branch function is wrong.
Conver the 'patch_export_compress' option to int.

Change-Id: Iae0cb0d4780de153655c52307c5fb25410802c11
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agolog: update GbpLogger for gbs.
wanchao-xu [Fri, 26 Apr 2024 09:14:06 +0000 (17:14 +0800)]
log: update GbpLogger for gbs.

Change-Id: I61b1a24ec2b9b0622132e11d3ce5a9f710a808d6
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agopull: support '--packaging-branch' option and support two modes for '--force' option.
wanchao-xu [Fri, 26 Apr 2024 09:09:44 +0000 (17:09 +0800)]
pull: support '--packaging-branch' option and support two modes for '--force' option.

The 'force' option now has two possible values:
'merge': upstream branch is merged, even if fast-forward is not possible.
'clean': check out a clean copy from the upstream if fast-forward is not possible (i.e. no merge). Local changes are lost in this case.

Change-Id: Id2485c5a15141af39ed24c8922bdb2639e921948
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agorepository: update get_remote_repos() to return the urls.
wanchao-xu [Fri, 26 Apr 2024 09:06:23 +0000 (17:06 +0800)]
repository: update get_remote_repos() to return the urls.

Change-Id: I483a1f3fc29e733a968c56029562da7c12a1b71e
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agoclone: support '--packaging-branch' option.
wanchao-xu [Fri, 26 Apr 2024 08:56:23 +0000 (16:56 +0800)]
clone: support '--packaging-branch' option.

Change-Id: Iecfbaaab7aa059add13822d47069d1a07b118b87
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agoRpmPkgPolicy: update module name for tizen.
wanchao-xu [Fri, 26 Apr 2024 08:48:40 +0000 (16:48 +0800)]
RpmPkgPolicy: update module name for tizen.

Change-Id: I0e22d6ec987f518d46c5f71ba63e29ab2fb8c8c3
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agorpm: Ignore encoding error when open spec file.
wanchao-xu [Fri, 19 Apr 2024 06:56:52 +0000 (14:56 +0800)]
rpm: Ignore encoding error when open spec file.

Change-Id: Ie42a3ea0112d96bcf8e11f513d65bcf3a805bb20
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agorepository: add create_tree.
wanchao-xu [Fri, 19 Apr 2024 06:32:50 +0000 (14:32 +0800)]
repository: add create_tree.

Change-Id: I41d85944f325858233efd27700eefca6baa1466d
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agobuildpackage_rpm: support '--git-pq-branch', '--git-rpmbuild-builddir', '--git-rpmbui...
wanchao-xu [Fri, 19 Apr 2024 05:31:56 +0000 (13:31 +0800)]
buildpackage_rpm: support '--git-pq-branch', '--git-rpmbuild-builddir', '--git-rpmbuild-buidrootdir', '--git-rpmbuild-rpmdir', '--git-rpmbuild-srpmdir', '--git-patch-export', '--git-patch-export-rev', '--git-patch-export-compress', '--git-patch-export-ignore-path', '--git-patch-export-squash-until' and '--git-patch-numbers' options.

Change-Id: I0b835c0c9a3af2a9ba2e016984399c8cc91d7d01
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agorpm_ch: support '--all' and '--message' options.
wanchao-xu [Fri, 19 Apr 2024 03:14:42 +0000 (11:14 +0800)]
rpm_ch: support '--all' and '--message' options.

Change-Id: Ia40b00566b07bb59975a1d2c6af4d44777cc07f1
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agopq-rpm: support '--new-packaging-dir', '--pq-branch', '--import-files', '--retain...
wanchao-xu [Fri, 19 Apr 2024 01:58:34 +0000 (09:58 +0800)]
pq-rpm: support '--new-packaging-dir', '--pq-branch', '--import-files', '--retain-history', '--export-rev', '--patch-export-compress', '--patch-export-squash-until' and '--patch-export-ignore-path' options.

Change-Id: Ied1fe7802ca3c405a418b5db6ecb7e8e4a0e1d25
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agoconfig: change default value of 'vendor' and 'packaging-tag'.
wanchao-xu [Thu, 18 Apr 2024 03:11:49 +0000 (11:11 +0800)]
config: change default value of 'vendor' and 'packaging-tag'.

Change-Id: Ic9dda511f047642075dde43169eb8d193ad41f3a
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agoimport_srpm: support 'patch-import' option to import patches.
wanchao-xu [Wed, 17 Apr 2024 12:51:34 +0000 (20:51 +0800)]
import_srpm: support 'patch-import' option to import patches.

Change-Id: Iece966316fdc11cf3bbc5b3e14a76d169f4edd74
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
13 months agopq: support the pq-branch format "patch-queue/%(branch)s".
wanchao-xu [Wed, 17 Apr 2024 11:21:55 +0000 (19:21 +0800)]
pq: support the pq-branch format "patch-queue/%(branch)s".

Change-Id: I2a4cb6a5e0ac9ad68f1aac9c651441ceb3df2ad5
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
14 months agoDisable the API docs for debian build. * An error on ubuntu22.04 : [dh_installdocs...
wanchao-xu [Fri, 29 Mar 2024 06:12:22 +0000 (14:12 +0800)]
Disable the API docs for debian build. * An error on ubuntu22.04 : [dh_installdocs: error: Cannot find (any matches for) "build/apidocs/"]

Change-Id: I65c10f517326589576ea26f6f4b4ae883efc46d4
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
14 months agoRemove the test case test_pristine_has_commit.
wanchao-xu [Fri, 29 Mar 2024 08:06:28 +0000 (16:06 +0800)]
Remove the test case test_pristine_has_commit.

  * Test case test_pristine_has_commit depends on pristine-tar package, and the pristine-tar of gbs tools will be used while building.
  * Test case test_pristine_has_commit will failed because pristine-tar package is old.

Change-Id: Id92bae0ae32bef145bf410723778bb8837ecb799
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
14 months agoUpdate the debian files to build gbp 0.9.29.
wanchao-xu [Fri, 29 Mar 2024 02:40:07 +0000 (10:40 +0800)]
Update the debian files to build gbp 0.9.29.

Change-Id: I407ec1f15222955c7963ffb6d6031e762e4d6f03
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
14 months agoFix the build error on opensuse 15.2.
wanchao-xu [Fri, 29 Mar 2024 01:28:56 +0000 (09:28 +0800)]
Fix the build error on opensuse 15.2.

Change-Id: I9d7b4bf60fd23c83cd6aa6a65dd56c67bcf3ccbf
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
14 months agoUpdate the spec file to build gbp 0.9.29.
wanchao-xu [Thu, 28 Mar 2024 08:34:56 +0000 (16:34 +0800)]
Update the spec file to build gbp 0.9.29.

Change-Id: If2a3cf74b01dfb6aee890f4c99a2f7ab10d55707
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
14 months agoUpdate the config files from upstream.
wanchao-xu [Thu, 28 Mar 2024 08:33:56 +0000 (16:33 +0800)]
Update the config files from upstream.

Change-Id: I4ece5619f77ebe0493ea10cedd85bdb6607596c2
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
14 months agoadd debian and packaging 19/308619/1 sandbox/wangbiao/gbp_test_0_9_29
wangbiao [Thu, 28 Mar 2024 07:17:03 +0000 (16:17 +0900)]
add debian and packaging

Change-Id: Iff89a9b763a2e7621d77140f58e9cc44896af57a
Signed-off-by: wangbiao <biao716.wang@samsung.com>
14 months agoupgrade code to 0.9.29 14/308614/4 debian/0.9.29
wangbiao [Thu, 28 Mar 2024 06:55:55 +0000 (15:55 +0900)]
upgrade code to 0.9.29

Change-Id: I86d29c85f5b4ddc98e42ee453fb3994a32c8b4de
Signed-off-by: wangbiao <biao716.wang@samsung.com>
15 months agogbp/git/vfs.py:fix initial_value must be str or None, not bytes 67/306967/1 debian/0.9.36
wangbiao [Fri, 1 Mar 2024 05:26:57 +0000 (14:26 +0900)]
gbp/git/vfs.py:fix initial_value must be str or None, not bytes

Change-Id: I2855cfd6b6fb10b0bce863ddc3af57f83e158d89
Signed-off-by: wangbiao <biao716.wang@samsung.com>
18 months agoUpdate version to 0.9.28 93/302093/2
xuhy [Thu, 30 Nov 2023 07:11:01 +0000 (15:11 +0800)]
Update version to 0.9.28

Change-Id: I75ef57dfb0dced976a173010760ff3bae955ef0d
Signed-off-by: xuhy <huayong.xu@samsung.com>
18 months agoMerge remote-tracking branch 'origin/sandbox/wangbiao/py3_version' into devel 59/301459/1 debian/0.9.28
wangbiao [Thu, 16 Nov 2023 07:47:23 +0000 (16:47 +0900)]
Merge remote-tracking branch 'origin/sandbox/wangbiao/py3_version' into devel

Change-Id: I490a052925258158e7be621cca78ee1eb31753d2
Signed-off-by: wangbiao <biao716.wang@samsung.com>
19 months agoUpdate version to 0.9.27 13/300713/1
wangbiao [Wed, 1 Nov 2023 06:17:34 +0000 (15:17 +0900)]
Update version to 0.9.27

Change-Id: I326e562878292df7f3b607e01afec841b7e19513
Signed-off-by: wangbiao <biao716.wang@samsung.com>
20 months agoIgnore encoding error when open spec file 19/299119/2 debian/0.9.27
biao716.wang [Wed, 20 Sep 2023 06:38:26 +0000 (15:38 +0900)]
Ignore encoding error when open spec file
for example: capi_context.spec the encoding way is "EUC-KR"
import chardet
>>> chardet.detect(open('capi-context.spec', 'rb').read())['encoding']
'EUC-KR'
but default encoding is utf-8.
Change-Id: Ib22e0b6101c6bada2945b11b6883790a975c7acb
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
21 months agoFix gbs export error 72/298872/1
Łukasz Stelmach [Thu, 14 Sep 2023 11:27:00 +0000 (13:27 +0200)]
Fix gbs export error

Decode second file paths for R and C statuses too

Change-Id: I27dd3ef66039ae15229d38509a18dfe2ea025c81
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
21 months agonow librpm-tizen return string not bytes on 4.14 version 34/298434/3
biao716.wang [Thu, 7 Sep 2023 02:50:53 +0000 (11:50 +0900)]
now librpm-tizen return string not bytes on 4.14 version

Change-Id: Ie8b2e8fee66f4acc16476ccd4779e1602666817d
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
21 months agofix gbs export error 84/297984/1
biao716.wang [Tue, 29 Aug 2023 12:30:53 +0000 (21:30 +0900)]
fix gbs export error

Change-Id: I8fb9b2654f2020bbf03e6e429f8bb395a7e345f8
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
22 months agofix build error on opensuse15.x distro 22/296722/3
biao716.wang [Thu, 3 Aug 2023 11:15:46 +0000 (20:15 +0900)]
fix build error on opensuse15.x distro

Change-Id: I0fbfdcfdfa390d16a6a5bbf52978590b0987b126
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agofix build error during gbs funtion test 56/293356/11
biao716.wang [Thu, 25 May 2023 02:36:00 +0000 (11:36 +0900)]
fix build error during gbs funtion test
https://github.com/agx/git-buildpackage/commit/1b5a47f4bda5d8809998750c3a35b4e02c8b2851
https://github.com/agx/git-buildpackage/commit/1b5a47f4bda5d8809998750c3a35b4e02c8b2851

modify patch file wrong encoding.
https://github.com/agx/git-buildpackage/commit/c4bc6561c788f71b5131d0bd8e92478e83808200
pq: don't eagerly encode email headers
https://github.com/agx/git-buildpackage/commit/9dc2129c4448416f43300ce859f1e1f4a1070048
pq: properly retry non-ascii charset on patch body encode
https://github.com/agx/git-buildpackage/commit/04ae7d5654684d8077a4125c90e36f4195057fa9
git: Don't decode diff output
https://github.com/agx/git-buildpackage/commit/c159d0ba16636bc3692b89555b258a3bc7907902
pq export: Write out patches as UTF-8 if necessary
Change-Id: I6982c800361b8cc1ad4c16211fca450803e5eb02
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agofix run error: re.error: bad escape \S at position 7 22/291922/5
biao716.wang [Tue, 25 Apr 2023 06:20:41 +0000 (15:20 +0900)]
fix run error: re.error: bad escape \S at position 7

Change-Id: I6f9e25806b43aa66a1c05cad0d54edbc656f733b
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agofixing nosetest error on GBS 15/291915/1
biao716.wang [Tue, 25 Apr 2023 05:41:56 +0000 (14:41 +0900)]
fixing nosetest error on GBS

Change-Id: Ib7e5e00dbd270211fedcc6399c738e6fd271d0ae
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agofix run error for gbp 94/284994/1
biao716.wang [Fri, 2 Dec 2022 08:49:18 +0000 (17:49 +0900)]
fix run error for gbp

Change-Id: If8a7cfbd61cea46af63612c76b2934774468130a
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agofix next error in linkedlist.py
biao716.wang [Wed, 30 Nov 2022 10:28:25 +0000 (19:28 +0900)]
fix next error in linkedlist.py

Change-Id: I76f6ad919b415e4bff845ce1fef4182ba6fa9ab5
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agofix run error for re.sub(): KeyError: '\S' 03/284903/1
biao716.wang [Wed, 30 Nov 2022 09:40:17 +0000 (18:40 +0900)]
fix run error for re.sub(): KeyError: '\S'

It seems backslash handling changed in Python3.8:
https://docs.python.org/3.8/library/re.html

Change-Id: I43c9e9baa13598015fb9ef801bd435e78945c309
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agoporting code to python3.x with os patch 80/284780/5
biao716.wang [Fri, 25 Nov 2022 13:24:26 +0000 (22:24 +0900)]
porting code to python3.x with os patch

Change-Id: I3deda71d6bde7c3363800d79d2e9ae6998bdb9e7
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agofix collections import issue with python3 11/284011/1
biao716.wang [Tue, 8 Nov 2022 11:07:43 +0000 (20:07 +0900)]
fix collections import issue with python3

Change-Id: I97326835e1cfc7cbf2d026f42b37d4afa8c07501
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agoreplace rfc822 to dateutil 09/284009/2
biao716.wang [Tue, 8 Nov 2022 10:24:37 +0000 (19:24 +0900)]
replace rfc822 to dateutil

Change-Id: I401cec4eb4057ff54b27ed25d9a32bd0e455cefe
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agofix build error with opensuse distro 78/283878/2
biao716.wang [Fri, 4 Nov 2022 11:07:58 +0000 (20:07 +0900)]
fix build error with opensuse distro

Change-Id: I75d2fa2e6e63f8973f378ecc370cba1ac67e62d5
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agoUpdate version to 0.9.26 63/283863/1
biao716.wang [Fri, 4 Nov 2022 10:42:35 +0000 (19:42 +0900)]
Update version to 0.9.26

Change-Id: Ia8544cf4844df1f9e1df7723ad7d6522a5a04ec1
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agoport code from python2.x to python3.x 23/283523/10
biao716.wang [Fri, 28 Oct 2022 03:42:00 +0000 (12:42 +0900)]
port code from python2.x to python3.x

Change-Id: I798c72d07e44839cc5d1e25ec75fca0bd8068567
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agoupdate submodule url 01/277801/3 sandbox/wangbiao/os_0_9_8_py3_version debian/0.9.26
biao716.wang [Wed, 13 Jul 2022 12:49:10 +0000 (21:49 +0900)]
update submodule url

Change-Id: I7ad4df7a289a0efcb7193284b7fb4bd6029ffe9e
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
4 years agoUpdate version to 0.9.21 56/258356/2 accepted/tizen_devbase_tools accepted/tools_devbase_tools_legacy devel-py2 accepted/tizen/devbase/tools/20210514.132050 accepted/tizen/devbase/tools/20210517.061558 accepted/tools/devbase/tools/legacy/20240422.110847 accepted/tools/devbase/tools/legacy/20240423.040725 accepted/tools/devbase/tools/legacy/20240424.050706 accepted/tools/devbase/tools/legacy/20250527.042505 submit/trunk/20210514.072551 submit/trunk/20210514.153130 submit/trunk/20210517.091730 upstream/0.9.21
biao716.wang [Fri, 14 May 2021 03:51:43 +0000 (12:51 +0900)]
Update version to 0.9.21

Change-Id: I33ec1d2038357d0d5777dc7ac2c0530547f43a43
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
4 years agoFix export submodule source code error 80/258080/1 debian/0.9.21
biao716.wang [Mon, 10 May 2021 07:44:36 +0000 (16:44 +0900)]
Fix export submodule source code error

Change-Id: Ief8adf0e70e02c403ab4117a81e65ac141cb76d0
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
5 years agoUpgrades git-buildpackage version to 0.9.20 to adapt Ubuntu:20.04 release 64/234164/3 accepted/tizen/devbase/tools/20200618.010540 accepted/tizen/devbase/tools/20200623.003358 accepted/tizen/devbase/tools/20201105.013048 submit/trunk/20200612.131210 submit/trunk/20200612.180310 submit/trunk/20200612.182210 submit/trunk/20200612.185510 submit/trunk/20200612.191020 submit/trunk/20200615.140020 submit/trunk/20200617.133020 submit/trunk/20200619.141212 submit/trunk/20200622.151812 submit/trunk/20201029.114030 submit/trunk/20201029.132130 submit/trunk/20201029.140230 submit/trunk/20201030.104730 submit/trunk/20201030.143530 submit/trunk/20201102.094730 submit/trunk/20201104.132730
yan11.meng [Fri, 22 May 2020 08:13:31 +0000 (16:13 +0800)]
Upgrades git-buildpackage version to 0.9.20 to adapt Ubuntu:20.04 release

Change-Id: I26dd1c7e317f6d45fae99fc782274b0453d39f11
Signed-off-by: yan11.meng <yan11.meng@samsung.com>
5 years agoFix build error with Ubuntu 20.04 83/232883/7 debian/0.9.20
biao716.wang [Fri, 8 May 2020 06:23:41 +0000 (15:23 +0900)]
Fix build error with Ubuntu 20.04
For Ubuntu 20.04, there is no python-epydoc and pychecker, change pydoctor to replace epydoc, and about pychecker, there is pylint tools instead.
So add gen_apidoc.sh file to distinguish which tool is avaiable.
Change-Id: I484ab8f382d186e9293df3966bb4a7869b59d3a0
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
5 years agofix pylint error for Ubuntu 14.04, add gbp/version.py file 18/220018/1 accepted/tizen/devbase/tools/20200104.060141 accepted/tizen/devbase/tools/20200106.014315 accepted/tizen/devbase/tools/20200109.052803 accepted/tizen/devbase/tools/20200110.011759 accepted/tizen/devbase/tools/20200114.020233 accepted/tizen/devbase/tools/20200114.115815 accepted/tizen/devbase/tools/20200115.231434 accepted/tizen/devbase/tools/20200219.094542 accepted/tizen/devbase/tools/20200415.093457 accepted/tizen/devbase/tools/20200423.100549 accepted/tizen/devbase/tools/20200514.023607 accepted/tizen/devbase/tools/20200520.012809 submit/trunk/20200104.111033 submit/trunk/20200104.134833 submit/trunk/20200105.091946 submit/trunk/20200108.172702 submit/trunk/20200108.192702 submit/trunk/20200109.105802 submit/trunk/20200109.112402 submit/trunk/20200109.124502 submit/trunk/20200109.151502 submit/trunk/20200109.154402 submit/trunk/20200110.111659 submit/trunk/20200114.100000 submit/trunk/20200114.110000 submit/trunk/20200115.110101 submit/trunk/20200219.120523 submit/trunk/20200409.194520 submit/trunk/20200409.200220 submit/trunk/20200409.202020 submit/trunk/20200410.143020 submit/trunk/20200410.160020 submit/trunk/20200413.132320 submit/trunk/20200413.150000 submit/trunk/20200413.150500 submit/trunk/20200413.151000 submit/trunk/20200414.141500 submit/trunk/20200414.173500 submit/trunk/20200414.191000 submit/trunk/20200422.115210 submit/trunk/20200422.142510 submit/trunk/20200422.165210 submit/trunk/20200423.102810 submit/trunk/20200423.115423 submit/trunk/20200423.122334 submit/trunk/20200513.162810 submit/trunk/20200519.161030 submit/trunk/20200519.164610 submit/trunk/20200519.184310
biao716.wang [Thu, 12 Dec 2019 09:45:59 +0000 (17:45 +0800)]
fix pylint error for Ubuntu 14.04, add gbp/version.py file

Change-Id: I741176ae7adff77ad09bb07ab6b5352481500454
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
5 years agofix pylint error for git-buildpackage 93/217793/1
biao716.wang [Thu, 14 Nov 2019 08:17:06 +0000 (16:17 +0800)]
fix pylint error for git-buildpackage

Change-Id: Ia319032dcd3f55600bb79b5c85372a7a77122174
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
5 years agoFix case not run because of submodule import error 08/217208/3 submit/trunk/20200108.202702
biao716.wang [Thu, 7 Nov 2019 11:21:05 +0000 (19:21 +0800)]
Fix case not run because of submodule import error

Change-Id: I21b5a2c04b8427bad804ea97fbc0b2812dc1e032
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
6 years agokeep same with master branch on review.tizen.org 06/200206/1 release-20190215 release-pylint accepted/tizen/devbase/tools/20190927.044935 submit/devel/20190730.074529 submit/trunk/20190927.012842 submit/trunk/20191014.234733 submit/trunk/20191015.001635 submit/trunk/20191015.052726 submit/trunk/20191015.094027 submit/trunk/20191015.111805 submit/trunk/20191017.111201 submit/trunk/20191017.233826 submit/trunk/20191030.112603 submit/trunk/20191101.102136
biao716.wang [Wed, 20 Feb 2019 05:13:50 +0000 (13:13 +0800)]
keep same with master branch on review.tizen.org

Change-Id: Idf6a378cd3dd056013c07a3c5263a6b2bea07608
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
6 years agoupgrade version to 0.9.9 82/199882/3
biao716.wang [Wed, 12 Sep 2018 08:50:34 +0000 (16:50 +0800)]
upgrade version to 0.9.9

Change-Id: I7a5fb263f02daf4810d801fd414409c752e88f68
Signed-off-by: jingui.ren <jingui.ren@samsung.com>
7 years agoChange url of gitmodules to inside public gerrit sandbox/soong9/gitmodules debian/0.9.9
SoonKyu Park [Wed, 10 May 2017 08:41:32 +0000 (17:41 +0900)]
Change url of gitmodules to inside public gerrit

Change-Id: Id9f39e2ea5c0a4f5b9e4a0f10e029f3ebdd434ba

8 years agoMerge remote-tracking branch 'origin/release-20161231' into HEAD devel-test20161228
SoonKyu Park [Wed, 28 Dec 2016 13:56:50 +0000 (22:56 +0900)]
Merge remote-tracking branch 'origin/release-20161231' into HEAD

8 years agoUpgrade version to 0.7.5 release-20161231
SoonKyu Park [Mon, 26 Dec 2016 13:33:38 +0000 (22:33 +0900)]
Upgrade version to 0.7.5

Change-Id: I765bee4aad47fd731d2f79b58f2bf19c37151827

8 years agoDisable test_pristine_tar unittest case debian/0.7.5
y0169.zhang [Wed, 21 Dec 2016 07:50:05 +0000 (16:50 +0900)]
Disable test_pristine_tar unittest case

Change-Id: I5ece198765d2faef424ec486aa0c056680c5071a

8 years agoAdapt git-merge option when git version greater then 2.9
Jun Wang [Tue, 20 Dec 2016 08:05:32 +0000 (16:05 +0800)]
Adapt git-merge option when git version greater then 2.9

Change-Id: Icd9cb9edc8517095984c0a0f497173e2f068aa20

8 years agoGitRepository: Fix diff_status() for renames and copies 45/89945/2
Jiankang Fan [Wed, 28 Sep 2016 02:26:09 +0000 (10:26 +0800)]
GitRepository: Fix diff_status() for renames and copies

When file has been renamed or copied git places two filepaths
in a status line.

Previously, we concatenated them (with additional \x00)
and put into a single record in results dictionary.
This leads to records like:
    'libusbg.pc.in\x00libusbgx.pc.in'
and result in a exception while trying to invoke git diff
on such record:

error: Traceback (most recent call last):
File "/usr/bin/gbs", line 628, in <module>
     sys.exit(main(sys.argv))
File "/usr/bin/gbs", line 622, in main
     return module.main(args)
File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_export.py", line 302, in main
     export_sources(repo, commit, export_dir, main_spec, args)
File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_export.py", line 222, in export_sources
     ret = gbp_build(gbp_args)
File "/usr/lib/python2.7/dist-packages/gbp/scripts/buildpackage_rpm.py", line 588, in main
     export_patches(repo, spec, patch_tree, options)
File "/usr/lib/python2.7/dist-packages/gbp/scripts/buildpackage_rpm.py", line 283, in export_patches
     update_patch_series(repo, spec, upstream_tree, export_treeish, options)
File "/usr/lib/python2.7/dist-packages/gbp/scripts/pq_rpm.py", line 211, in update_patch_series
     spec.specdir, options)
File "/usr/lib/python2.7/dist-packages/gbp/scripts/pq_rpm.py", line 144, in generate_patches
     options.patch_export_ignore_path)
File "/usr/lib/python2.7/dist-packages/gbp/scripts/common/pq.py", line 290, in format_diff
     text=True)
File "/usr/lib/python2.7/dist-packages/gbp/git/repository.py", line 1813, in diff
     output, stderr, ret = self._git_inout('diff', options.args)
File "/usr/lib/python2.7/dist-packages/gbp/git/repository.py", line 187, in _git_inout
     capture_stdout):
File "/usr/lib/python2.7/dist-packages/gbp/git/repository.py", line 245, in __git_inout
     cwd=cwd)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
     errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1252, in _execute_child
     raise child_exception
TypeError: execv() arg 2 must contain only strings

To fix this let's add each filepath as a seprate record as git diff
command will understand our intentions perfectly.

Change-Id: I4955bf341147d84880fb2aac49b19a290f1465e5
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
8 years agoHandle conflicts from git merge master 19/81319/1 devel_psk_20160727
SoonKyu Park [Mon, 25 Jul 2016 11:53:31 +0000 (20:53 +0900)]
Handle conflicts from git merge master

Change-Id: I9dfa02fb546a04f97aade855615ad2843790a2c1

9 years agoHandle conflicts from git merge release-20160531 release-20160615 release-20160930
SoonKyu Park [Thu, 16 Jun 2016 08:32:15 +0000 (17:32 +0900)]
Handle conflicts from git merge release-20160531

Change-Id: I1cae90068ab2576d756188e36e112550c7c293de

9 years agoUpgrade version to 0.6.27
SoonKyu Park [Sat, 11 Jun 2016 09:44:31 +0000 (18:44 +0900)]
Upgrade version to 0.6.27

- Upgrade tizen-gbp-rpm version to 20160302
- re-arrage package dependency for debian

Change-Id: I6d7d505d5a8ba28cb4bfa59a83ab9af657fa43f4

9 years agoRevert "buildpackage-rpm: always create tarball for native packages"
Markus Lehtonen [Mon, 2 Mar 2015 15:38:44 +0000 (17:38 +0200)]
Revert "buildpackage-rpm: always create tarball for native packages"

Fixes: DEVT-215
This reverts commit efc490c4a8da5ce7a0bd1bf4a20009c3a445bb47.

Change-Id: I2109f7ff48384a3b1190a73a3471bdc67f6d2427
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoDisbale test_create_branches unit case release-20160531
Jun Wang [Tue, 7 Jun 2016 09:34:47 +0000 (17:34 +0800)]
Disbale test_create_branches unit case

Change-Id: I1802461d5081aa6c14455ec955505cf4e8baf825

9 years agoChange .gitmodules to suit HQ gerrit projects
Jun Wang [Fri, 27 May 2016 02:51:27 +0000 (10:51 +0800)]
Change .gitmodules to suit HQ gerrit projects

Change-Id: Ib57a6faac63412baad9a65e961d10bfafe28012b

9 years agoAdd tar extract patches to solve bad message generated by git(2.7.4) mailinfo
yang.zhang [Tue, 24 May 2016 06:11:25 +0000 (14:11 +0800)]
Add tar extract patches to solve bad message generated by git(2.7.4) mailinfo

Change-Id: Iaca480434f5f59d9b3cc66e477a9ea9c5c08c276

9 years agoDue to Ubuntu 16.04 provide git-buildpackage with latest version 0.7.2,
Jun Wang [Wed, 18 May 2016 03:46:57 +0000 (11:46 +0800)]
Due to Ubuntu 16.04 provide git-buildpackage with latest version 0.7.2,
so we need update local version number to 0.7.4(latest) and make sure
gbs has same local codes.

Change-Id: I6791a61abe765a994ef28461f236137a3d979d2a

9 years ago1. Reset to 0.27 debian/0.7.4
Jun Wang [Tue, 10 May 2016 07:03:01 +0000 (15:03 +0800)]
1. Reset to 0.27
2. Keep same code with latest release

Change-Id: I30588773b0a039c9f5002bf65b5c768a16fb7935

9 years agoMerge "Remove unused functions" into devel
Jun Wang [Tue, 10 May 2016 14:07:07 +0000 (14:07 +0000)]
Merge "Remove unused functions" into devel

9 years agoRemove unused functions
Jun Wang [Tue, 10 May 2016 06:03:50 +0000 (14:03 +0800)]
Remove unused functions

Change-Id: I7cfa375f77ccc068fb5107d334e6b5fe1511cda5

9 years agoAdd tests/component/rpm/data and tests/component/deb/data
shuai.fu [Tue, 10 May 2016 05:51:00 +0000 (13:51 +0800)]
Add tests/component/rpm/data and tests/component/deb/data
Signed-off-by: shuai.fu <shuai01.fu@samsung.com>
Change-Id: I850ffbab50fa949be56a3e35665e80bc51d06adf

9 years agoHandle conflicts from git merge release-20160315 release-20160411
SoonKyu Park [Mon, 11 Apr 2016 04:21:01 +0000 (13:21 +0900)]
Handle conflicts from git merge release-20160315

9 years agochange testdata's gerrit server IP to review.tizen.org 41/65241/6 release-20160315
SoonKyu Park [Fri, 8 Apr 2016 05:19:55 +0000 (14:19 +0900)]
change testdata's gerrit server IP to review.tizen.org

Change-Id: Ie4a8ad352400f8196cb8bd544a506e5b8ae484b7

9 years ago1.Change to way to get test data dirctory
Jun Wang [Mon, 21 Mar 2016 16:23:09 +0000 (00:23 +0800)]
1.Change to way to get test data dirctory
2.Fix the error of indent in tests/20_test_rpm.py
3.Change to vendor tag

Change-Id: Ia9520a6c441fa9d34eff76c96a41764f3fb0ba76

9 years agoFix 20_test_rpm.py to suit different edition of python.
Jun Wang [Mon, 21 Mar 2016 11:34:15 +0000 (19:34 +0800)]
Fix 20_test_rpm.py to suit different edition of python.

Change-Id: Ibe03d1614fafb5ceb01af634da90eda8d1426fbd

9 years agoModify unit test cases which called 'assert_raises' function
Jun Wang [Fri, 18 Mar 2016 13:49:38 +0000 (21:49 +0800)]
Modify unit test cases which called 'assert_raises' function
to fix pre-review test bugs on CentOS_6.

Change-Id: Ibb930eb107c18526876fc58428db359f9d31e716

9 years agoUse vendor to publish in srpm unpack
Jun Wang [Wed, 9 Mar 2016 14:43:29 +0000 (22:43 +0800)]
Use vendor to publish in srpm unpack

Change-Id: I02f5d8cc11a268c7dd075da6e0064d3fedf72721

9 years agoadd compose_version_str function
Jun Wang [Wed, 9 Mar 2016 10:44:48 +0000 (18:44 +0800)]
add compose_version_str function

Change-Id: Id1944627b2ec5cf450c978f77002c72d46206572

9 years agofix change log date error
Jun Wang [Wed, 9 Mar 2016 10:35:44 +0000 (18:35 +0800)]
fix change log date error

Change-Id: Icc99e018aac3b06bb2d16049ca2849e6eab5eeed

9 years agochange version to 0.6.28 in devel branch tizen/0.6.28-20160308
Jun Wang [Wed, 9 Mar 2016 09:34:20 +0000 (17:34 +0800)]
change version to 0.6.28 in devel branch

Change-Id: I51379cbfa73533f9c7737ad9ff16107e83129d83

9 years agoadd tag debian/0.6.27 debian/0.6.28
admin [Tue, 8 Mar 2016 12:01:17 +0000 (20:01 +0800)]
add tag debian/0.6.27

Change-Id: I931ab6fa99ad1ee47fec90a8421e1185454da5ae
Signed-off-by: admin <yuhuan.yang@samsung.com>
9 years agofix spec and control error
Jun Wang [Tue, 8 Mar 2016 11:03:06 +0000 (19:03 +0800)]
fix spec and control error

Change-Id: Ia455b5475e56ff2344cba8ac3d5c47da9e306c29

9 years agofix .gitignore file
Jun Wang [Tue, 8 Mar 2016 10:50:48 +0000 (18:50 +0800)]
fix .gitignore file

Change-Id: I3ff293da5b50301425c327d044d8e7b3b4f81a80

9 years agoMake new tag in devel
Jun Wang [Tue, 8 Mar 2016 10:18:58 +0000 (18:18 +0800)]
Make new tag in devel

Change-Id: Idc6a43b5a475733ad8568d041384319157db9a5c

9 years agoCheck devel branch codes to be good from latest release tizen/0.6.27-20160302
Jun Wang [Tue, 8 Mar 2016 10:00:33 +0000 (18:00 +0800)]
Check devel branch codes to be good from latest release tizen/0.6.27-20160302

Change-Id: I87f32c6b28b8835c09004530d7e6e429143dc4bf