tools/gbs.git
9 years agorpm-tizen should be required by gbs-export sub-pack
Zhang Qiang [Fri, 15 Aug 2014 06:19:19 +0000 (14:19 +0800)]
rpm-tizen should be required by gbs-export sub-pack

Change-Id: I50e344ed1b508994f45f9cb58192ce1edafb95bf

10 years agobump to 0.22.1 release 0.22.1
Zhang Qiang [Fri, 13 Jun 2014 02:54:33 +0000 (10:54 +0800)]
bump to 0.22.1 release

Change-Id: I800b58a4d21ce0f011f5cca80175e78473a19147
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
10 years agoexport: disable desktop notifications
Markus Lehtonen [Fri, 30 May 2014 11:11:10 +0000 (14:11 +0300)]
export: disable desktop notifications

Desktop notifications are really not needed and are just one potential
source of problems.

Closes: DEVT-178

Change-Id: If0005312cc4dce63ae829fbb3f1b4208f0c05d8f
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoexport: change VCS tag in spec to sha1 of commitish
Markus Lehtonen [Mon, 2 Jun 2014 09:08:18 +0000 (12:08 +0300)]
export: change VCS tag in spec to sha1 of commitish

Do not resolve to the sha1 of the commit object anymore. That is, the
VCS tag will contain the sha1 of the tag object if an (annotated) tag is
exported (previously, it would contain the sha1 of the commit the tag,
or the chain of tags, pointed to) (previously, it would contain the sha1
of the commit the tag, or the chain of tags, pointed to).

Change-Id: I5b8d164cf1f4e910740d75df825cd506ffb9437c
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoexport: disable desktop notifications
Markus Lehtonen [Fri, 30 May 2014 11:11:10 +0000 (14:11 +0300)]
export: disable desktop notifications

Desktop notifications are really not needed and are just one potential
source of problems.

Closes: DEVT-178

Change-Id: If0005312cc4dce63ae829fbb3f1b4208f0c05d8f
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobump to official release 0.22 0.22 submit/tizen_common/20140715.130018 submit/trunk/20140731.021513
Zhang Qiang [Thu, 22 May 2014 12:43:23 +0000 (20:43 +0800)]
bump to official release 0.22

Change-Id: Ib0ea4be1694300abc72d621816b83b7029d06345

10 years agoUpdate Release Notes
Zhang Qiang [Wed, 21 May 2014 15:27:44 +0000 (23:27 +0800)]
Update Release Notes

- add new distributions support list
- update required dependencies

Change-Id: I18c25f218842df396eeed1e03638b4c748f91475

10 years agobump to 0.22~rc1
Zhang Qiang [Wed, 21 May 2014 14:18:21 +0000 (22:18 +0800)]
bump to 0.22~rc1

Change-Id: Iaef7fa7e5caa65c27b657d3d950e62ab84b696dd

10 years agoUpdate dependency for new release
Zhang Qiang [Wed, 21 May 2014 14:22:58 +0000 (22:22 +0800)]
Update dependency for new release

depanneur: 0.13
git-buildpackage: 20140521

Change-Id: Ic840c08ce686567338a2f2536f12d4a223f7dab9

10 years agochangelog: fix import of the gbp changelog module
Markus Lehtonen [Wed, 21 May 2014 07:46:41 +0000 (10:46 +0300)]
changelog: fix import of the gbp changelog module

After it was renamed in gbp.

Change-Id: Ic66e16c672ec1ba42ab660c20225a87975fb9b0d
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoRename "Maintenance Models" section to better reflect the theme
Rui Lv [Tue, 20 May 2014 07:19:01 +0000 (03:19 -0400)]
Rename "Maintenance Models" section to better reflect the theme

Change-Id: Ib119d538d4e104bff5e5304583a9eb6f46ba08d6

10 years agoSupporting new profile key 'exclude_packages'
Zhang Qiang [Thu, 15 May 2014 15:56:30 +0000 (23:56 +0800)]
Supporting new profile key 'exclude_packages'

Tizen packages always have dependencies circles, and current gbs
does not support building multiple packages with circles. so
developer have to use --exclude option to exclude them every build
time.

This patch introduce exclude_packages to make user can configure
it in profile section.

Fixes: #1882

Change-Id: I3ab52fe2e405e0ebc009d14d230af8d3a638a4a7

10 years agochangelog: implement '--all' cmdline option
Markus Lehtonen [Fri, 16 May 2014 12:12:01 +0000 (15:12 +0300)]
changelog: implement '--all' cmdline option

For using all commits from the Git history. Overrides the '--since'
option, in case both are defined.

Fixes: #1829

Change-Id: I5ebfcb2e14396725067b64d6756f97af5928c22b
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agodocs: update section about package maintenance models
Markus Lehtonen [Fri, 16 May 2014 13:42:46 +0000 (16:42 +0300)]
docs: update section about package maintenance models

Especially, improve documentation regarding the orphan-packaging model.

Change-Id: I11b320d1b1cea6a683377fd23b1a35fdead9118f
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agodocs: documention for the new orphan-packaging maintenance model
Markus Lehtonen [Fri, 25 Apr 2014 07:18:09 +0000 (10:18 +0300)]
docs: documention for the new orphan-packaging maintenance model

Document the new 'devel' subcommand and the related package maintenance
model and Git branching layout.

Change-Id: I8ee145cbe96efea86b588ece561218425eca3bf5
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agosubmit: refuse to submit from development branch
Markus Lehtonen [Thu, 24 Apr 2014 06:27:53 +0000 (09:27 +0300)]
submit: refuse to submit from development branch

The submit command now detects if the submission is done from the
development branch of an orphan packaging branch and fails in this case.
Submissions must be done from the packaging branch if the package is
maintained using the orphan-packaging model.

Change-Id: I8fdfe9c64f1e71b1d8e1a5cdfa1ad63e93378b75
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoexport: fix bug in generation of gbp cmdline options
Markus Lehtonen [Wed, 23 Apr 2014 10:31:07 +0000 (13:31 +0300)]
export: fix bug in generation of gbp cmdline options

Always give '--git-export' option to git-buildpackage-rpm. This bug was
introduced when enabling the support for development branches.

Change-Id: I48daf69723979b04dbb6f12304e5dcb20666b44a
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoAdd the missed 'cmd_devel.py' in gbs/debian/gbs.install
Li Jinjing [Fri, 25 Apr 2014 11:54:44 +0000 (07:54 -0400)]
Add the missed 'cmd_devel.py' in gbs/debian/gbs.install

Change-Id: I5d66b93c4d7580173605db17b8f56cbd3ea38a80
Signed-off-by: Li Jinjing <jinjingx.li@intel.com>
10 years agochangelog: utilize rpm-ch from git-buildpackage
Markus Lehtonen [Thu, 27 Mar 2014 09:20:43 +0000 (11:20 +0200)]
changelog: utilize rpm-ch from git-buildpackage

Start to use the gbp changelog tool as backend as it is more
feature-rich. For example, it automatically parses bug-tracking-system
meta-tags from the commit messages (i.e. "Closes: XYZ" etc) and has a
lot more intelligent start-commit guessing.

Later on, additional features from gbp can be enabled in gbs, too.

Creating a new changelog from scratch now requires giving the --since
option. Previously gbs would take the whole git history to the changelog
which is problematic - e.g. creating a new changelog for linux kernel
would take every commit from the linux git history which is *very* long.

Also, the order of entries (i.e. commits) in the new changelog section
is now reversed: the oldest commit will be first (topmost) in the list
and the newest commit will be at the bottom of the list. This should
make the changelog a better chronological read.

Change-Id: Ib4f02f9be95f869b2161d16f8b68f828c5c1deda
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agopackaging: drop unneeded build requirement
Markus Lehtonen [Thu, 10 Apr 2014 12:30:18 +0000 (15:30 +0300)]
packaging: drop unneeded build requirement

Change-Id: I89aad41d263af14f21736622bce0105e63c9e9bd
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
10 years agodevel: implement --retain-history option
Markus Lehtonen [Thu, 10 Apr 2014 12:23:09 +0000 (15:23 +0300)]
devel: implement --retain-history option

With this option defined gbs tries to preserve the history of the
changes (since upstream) doing a convert. Basically, for each commit in
the old branch a corresponding commit in the new orphan packaging branch
is created. 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 files that are ignored by patch-generation like
.gbs.conf.

NOTE! Only valid for the 'convert' action.

Change-Id: I669fa6732bea7940561f5c99820d6d97d14b0658
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoimport: add --orphan-packaging option
Markus Lehtonen [Thu, 20 Mar 2014 08:16:59 +0000 (10:16 +0200)]
import: add --orphan-packaging option

This option causes packaging files to be imported into an orphan branch
which has no common history with the upstream branch. Patches are not
applied either, but, packaging files are imported "as is". The new
options is for supporting the new package maintenance model which has
separate branches for packaging files and source code development. After
importing a source package with this option, a development branch can be
created with "gbs devel start".

NOTE! The new option is only valid for implementing source rpms - no
effect when importing upstream tarballs.

Change-Id: Ib7004ccacf8bc15a9935ade60910a74c577893cb
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobuild: support for the new development/* branches
Markus Lehtonen [Thu, 20 Mar 2014 08:16:59 +0000 (10:16 +0200)]
build: support for the new development/* branches

The build now detects the package maintenance model (separate packaging
and devel branches or the old single packaging branch).

Change-Id: I2e2d22a7582e1c9e70182eea6ce2c3f1f6b97ad5
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoexport: support for the new development/* branches
Markus Lehtonen [Thu, 20 Mar 2014 08:16:59 +0000 (10:16 +0200)]
export: support for the new development/* branches

Export now detects the package maintenance model (separate packaging and
devel branches or the old single packaging branch) from the local
.gbs.conf and available branches. If an orphan branch (no common history
with the upstream branch) patch export is disabled and packaging files
are taken as is from the branch. If gbs detects from the local .gbs.conf
that the current branch is a development branch the packaging files are
taken from the packaging branch, but, patches are generated from the
development branch.

Change-Id: Ic7b782480a36792ae5ae55f8159a6850d894799a
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoexport: drop one unused internal function argument
Markus Lehtonen [Tue, 25 Mar 2014 11:54:30 +0000 (13:54 +0200)]
export: drop one unused internal function argument

The force_native argument of create_gbp_export_args() is not used
anywhere, anymore.

Change-Id: I1c5659904caf5b0dd22c55fac4e5122f4e76c0f7
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoImplement 'devel' subcommand
Markus Lehtonen [Sat, 8 Feb 2014 08:58:49 +0000 (10:58 +0200)]
Implement 'devel' subcommand

This command is to support another development model where packaging
files are maintained in a separate branch and source code changes in
separate development branch(es). The devel command is designed for
managing these development branches.

The subcommand provides the following actions:
1. gbs devel start: initialize development branch
2. gbs devel export: export patches from development branch back onto
                     the packaging branch
3. gbs devel drop: delete the development branch
4. gbs devel switch: switch between packaging and development branches
5. gbs devel convert: convert a package from the "old single branch"
                      development model to the new model

Change-Id: I2eec2b2ed73f50e03a9f7a2e5f6d24fc765c3a5b
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoconf: make it possible to update an empty conf file
Markus Lehtonen [Tue, 25 Mar 2014 10:19:16 +0000 (12:19 +0200)]
conf: make it possible to update an empty conf file

Change-Id: Ifdc0fc88424a10500749d74fa1784eeea7012031
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoconf: make it possible to add new sections
Markus Lehtonen [Mon, 24 Mar 2014 13:01:46 +0000 (15:01 +0200)]
conf: make it possible to add new sections

Change the set_into_file() method so that a new section is added if the
desired section is not found in the config.

Change-Id: Ic4c513bd07b0b7ce8a82b921faba35ed36befef5
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoFix Pylint Error
Zhang Qiang [Tue, 11 Mar 2014 03:27:15 +0000 (11:27 +0800)]
Fix Pylint Error

C0301: Line too long
C0326: No space allowed around keyword argument assignment
C0326: Exactly one space allowed before assignment

Change-Id: Ie40818628a51c0d52ec6b9bd3ad062c0caee9209

10 years agobump to official version 0.21 release-0.21 0.21
Zhang Qiang [Wed, 12 Mar 2014 09:13:31 +0000 (17:13 +0800)]
bump to official version 0.21

Change-Id: I28314c306d70f29cc47a031d6c71b5f62b095a24

10 years agoUpdate document to add some fixed bugs info
Zhang Qiang [Wed, 12 Mar 2014 03:06:54 +0000 (11:06 +0800)]
Update document to add some fixed bugs info

Change-Id: I5ff7d75802d29b5202303e812178f5e80895c66a

10 years agobugfix: check the existance of specified package dir
Zhang Qiang [Wed, 12 Mar 2014 09:58:12 +0000 (17:58 +0800)]
bugfix: check the existance of specified package dir

Change-Id: I367fb10aa4cad247711ea797a2c6c5c398f03555

10 years agoFixed xml.etree future warning
Ed Bartosh [Tue, 11 Mar 2014 18:42:50 +0000 (20:42 +0200)]
Fixed xml.etree future warning

New distros come with new xml.etree API, which produces this warning
when using oscapi:
 /usr/lib/python2.7/site-packages/gitbuildsys/oscapi.py:105:
FutureWarning: The behavior of this method will change in future
versions. Use specific 'len(elem)' or 'elem is not None' test instead.
if element:

This is also mentioned in the python documentation for xml.etree.find API:
Caution: Elements with no subelements will test as False. This behavior
will change in future versions. Use specific len(elem) or elem is None
test instead.

Fixes: #1706

Change-Id: I84c4a947125a8d96584fef609dc5266b97447c0e
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
10 years agoUpgrade rpm packaging version to 0.21.rc1
Zhang Qiang [Tue, 11 Mar 2014 08:50:57 +0000 (16:50 +0800)]
Upgrade rpm packaging version to 0.21.rc1

Change-Id: If2a6cd12150dbb50a96b5727b76d084f73b060e5

10 years agoAdd Release notes for gbs 0.21
Zhang Qiang [Tue, 11 Mar 2014 07:25:46 +0000 (15:25 +0800)]
Add Release notes for gbs 0.21

Change-Id: Iaba15abd1521fd977e6766d7983324a506401f40

10 years agoUpdate gbs version to 0.21
Zhang Qiang [Tue, 11 Mar 2014 08:31:48 +0000 (16:31 +0800)]
Update gbs version to 0.21

Change-Id: Ifd75c69d3a75c59deff4eb7e554fe856ec0ec957

10 years agoUpdate jenkins jobs configuration
Junchun Guan [Tue, 11 Mar 2014 06:42:40 +0000 (14:42 +0800)]
Update jenkins jobs configuration

Change-Id: I40b16621ec3390cf78e55e44af2b11dc71140364
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
10 years agoChecking REMOTE_REPOS parameter
Zhang Qiang [Tue, 11 Mar 2014 07:46:34 +0000 (15:46 +0800)]
Checking REMOTE_REPOS parameter

REMOTE_REPOS parameter must be specified for job_build_package_list job.

Change-Id: I5e8e89be531599ab3da27acb6a064f48970b7a98
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
10 years agoRemove BUILD_ID generation from common_funtion module
Zhang Qiang [Tue, 11 Mar 2014 07:30:28 +0000 (15:30 +0800)]
Remove BUILD_ID generation from common_funtion module

BUILD_ID is only necessary for job_build_packagelist job

Change-Id: I33f9877764a33ab51c4bb75bf9174f60669a0389

10 years agobump to gbs 0.21 rc1
Zhang Qiang [Tue, 11 Mar 2014 06:42:39 +0000 (14:42 +0800)]
bump to gbs 0.21 rc1

Change-Id: I7de47a61bfd32c1ba97ebf06c17e7e1abd9c18c0

10 years agodepend on new version of git-buildpackage and depanneur
Zhang Qiang [Tue, 11 Mar 2014 06:08:34 +0000 (14:08 +0800)]
depend on new version of git-buildpackage and depanneur

Prepare for gbs 0.21

Change-Id: Icc572d51a8b8cdc1b82929f2e2f39f38a359d02f

10 years agoFilter image-configurations debug packages
Junchun Guan [Mon, 10 Mar 2014 09:27:50 +0000 (17:27 +0800)]
Filter image-configurations debug packages

Just search image-configuration.rpm, exclude debug packages

Change-Id: I5b494b217339183225c0c02689684057df66fc70
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
10 years agoUncomment the line about repo sync
Junchun Guan [Thu, 6 Mar 2014 07:38:37 +0000 (15:38 +0800)]
Uncomment the line about repo sync

Change-Id: I86dc1fc0d88c392f0d32156cf9db4508331355c9
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
10 years agoRemoved tracked upstream/pristine-tar branches in time
Zhang Qiang [Thu, 6 Mar 2014 05:18:40 +0000 (13:18 +0800)]
Removed tracked upstream/pristine-tar branches in time

If no local upstream/pristine-tar branches, but exist in remote
branches, gbs should track it for export packages usage in gbp.
The tracked local branches is temp branch should be removed after
finishing export packages.

Change-Id: Iff5ba8a86b0b21b72f279eaadf6441a7178ce882

10 years agoSkip image creation if No KS files generated or found
Zhang Qiang [Wed, 5 Mar 2014 06:03:37 +0000 (14:03 +0800)]
Skip image creation if No KS files generated or found

Change-Id: Ice3d6bd4b988c8153cd5f797ef7760ab99da90f2

10 years agoMerge "Fix gbs build fails if packaging/ is a symlink" into devel
Qiang Z Zhang [Wed, 5 Mar 2014 09:20:16 +0000 (11:20 +0200)]
Merge "Fix gbs build fails if packaging/ is a symlink" into devel

10 years agoMerge "Use python2.6 compatible method of parsing xml" into devel
Qiang Z Zhang [Wed, 5 Mar 2014 08:56:39 +0000 (10:56 +0200)]
Merge "Use python2.6 compatible method of parsing xml" into devel

10 years agoFix gbs build fails if packaging/ is a symlink
Junchun Guan [Mon, 3 Mar 2014 04:04:15 +0000 (12:04 +0800)]
Fix gbs build fails if packaging/ is a symlink

gbs run `git ls-tree --name-only HEAD packaging` to search specs.
If packaging directory is a symlink, spec files cannot be found.

Fixes: #1630

Change-Id: I0b6262a0197de2c922a19e85687035111c92de0b
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
10 years agoAdd jenkins jobs and jenkins scripts for GBS local full build
Junchun Guan [Thu, 27 Feb 2014 08:13:35 +0000 (16:13 +0800)]
Add jenkins jobs and jenkins scripts for GBS local full build

Two sub-packages introduced:
 - gbs-jenkins-jobs: jenkins job configuation files
 - gbs-jenkins-scripts: scripts used by jenkins jobs

gbs-jenkins-jobs should be installed on jenkins master, and
jenkisn script should be installed on jenkins slave nodes.

Fixes: #1565

Change-Id: I879d238a82739c7cea62a371edf9e8ee7f4fdbb9
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
10 years agoUse python2.6 compatible method of parsing xml
Junchun Guan [Fri, 28 Feb 2014 08:16:28 +0000 (16:16 +0800)]
Use python2.6 compatible method of parsing xml

Change-Id: I9785815f63beba5ef7210939222b1f7b78ed84c4
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
10 years agoEnhance exception caused by proxy
Zhang Qiang [Tue, 25 Feb 2014 06:02:37 +0000 (14:02 +0800)]
Enhance exception caused by proxy

Add http_code 503 as proxy issue, and print system proxy environment
if encounter error.

Fixes: #1383
Change-Id: Ide3daefa57dc16241891fd4cd205e5444ff9a30b

10 years agoUpdate README.rst
Zhang Qiang [Wed, 19 Feb 2014 08:15:59 +0000 (16:15 +0800)]
Update README.rst

Full document is docs/GBS.rst, so the README file only contains the
the basic info of gbs

Change-Id: I22dba1d0b37935b3571a0605fcf93fd9fd71b6a8
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
10 years agocorrect parsing upstream branch for tarball generation
Zhang Qiang [Wed, 19 Feb 2014 05:43:49 +0000 (13:43 +0800)]
correct parsing upstream branch for tarball generation

use split('/', 1) instead of split('/') to parse out correct
upstream branch

Fixes: #1641

Change-Id: I603083766c18bd260c288daa39358f0c6d0d0d61
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
10 years agoexport: get rid of one invalid duplicate gbp option
Markus Lehtonen [Fri, 7 Feb 2014 12:33:52 +0000 (14:33 +0200)]
export: get rid of one invalid duplicate gbp option

which is correctly re-defined later in the list.

Change-Id: I2c9b239148396aa8dcac53f4423f1685c1ad63f7
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoconf: method for getting combined cmdline/conffile options
Markus Lehtonen [Fri, 7 Feb 2014 12:27:47 +0000 (14:27 +0200)]
conf: method for getting combined cmdline/conffile options

Add a new method for getting options which the user can give through
command line options and/or in config file(s). Command line option will
take precedence over what is configured in config file(s).

Removes a lot of duplicate code.

Change-Id: I06f5b1b6c231829ca490553025c2e4e81aa0abe2
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agopackaging: back to building with gbp
Markus Lehtonen [Wed, 11 Dec 2013 11:28:56 +0000 (13:28 +0200)]
packaging: back to building with gbp

Also, fix the dependency to pristine-tar and make the Release tag in
spec file more consistent.

Change-Id: I28bca6d9ea2544c02d7b19521a14794cb9f735dd
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoSupport --package-list and --package-from-file
Zhang Qiang [Thu, 9 Jan 2014 08:24:52 +0000 (16:24 +0800)]
Support --package-list and --package-from-file

The value of --package-* options can be the top dir of packages

Fixes: #1580

Change-Id: Ib14cc9cd3eb5b461a4f452bca46f2acd060e7353
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
10 years agoMerge "export: determine remote repo name from git config" into devel my-devel
Qiang Z Zhang [Thu, 26 Dec 2013 08:43:06 +0000 (10:43 +0200)]
Merge "export: determine remote repo name from git config" into devel

10 years agoexport: determine remote repo name from git config
Markus Lehtonen [Mon, 9 Dec 2013 14:19:54 +0000 (16:19 +0200)]
export: determine remote repo name from git config

Instead of trying to guess it from the remote tracking branch name which
can be ambigous.

Change-Id: I029c3fadb6f9ea63fa1c280e7183deba56c0e7ff
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoEnable gbs man page
Zhang Qiang [Mon, 23 Dec 2013 05:49:51 +0000 (13:49 +0800)]
Enable gbs man page

In current version, `man gbs` is disabled by annotating code that creates
manual page in spec file because the creation of manual page will fail
without question due to syntax error in GBS.rst.

In this change, the syntax error in GBS.rst is fixed, and the annotation
is cancelled accordingly.

Change-Id: Id69b8f704a1aa041a83f908ed65798157ca9c5fe
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
10 years agoFix GBS.rst format error
Zhang Qiang [Mon, 23 Dec 2013 05:51:54 +0000 (13:51 +0800)]
Fix GBS.rst format error

Change-Id: Ie0efc864b26f84d3a8242c65cfec402a593c7baf

10 years agoUpdate Release_notes and bump to offical 0.20 release-0.20 0.20
Zhang Qiang [Fri, 13 Dec 2013 06:47:05 +0000 (14:47 +0800)]
Update Release_notes and bump to offical 0.20

Change-Id: I33124689068cbca1ef7cd73646bb4102efce0845
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
10 years agoUpdate FAQs
Zhang Qiang [Tue, 17 Dec 2013 02:37:45 +0000 (10:37 +0800)]
Update FAQs

- update openSUSE zypper issue
- remove ubuntu 11.10 Q/A, as we don't support it now.

Change-Id: I9ed90d84b9d18e153dd92265363f90635e43a59a
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
10 years agopackaging: minor correction in changelogs
Markus Lehtonen [Tue, 17 Dec 2013 13:45:59 +0000 (15:45 +0200)]
packaging: minor correction in changelogs

Change-Id: I4ddce0f0e004dbafc2797d00f89dcf4707c5f299
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoMerge "packaging: minor correction in changelogs" into release-0.20
Qiang Z Zhang [Wed, 18 Dec 2013 02:56:51 +0000 (04:56 +0200)]
Merge "packaging: minor correction in changelogs" into release-0.20

10 years agopackaging: minor correction in changelogs
Markus Lehtonen [Tue, 17 Dec 2013 13:45:59 +0000 (15:45 +0200)]
packaging: minor correction in changelogs

Change-Id: I4ddce0f0e004dbafc2797d00f89dcf4707c5f299
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoRemove mic dependency
Zhang Qiang [Mon, 16 Dec 2013 08:39:12 +0000 (16:39 +0800)]
Remove mic dependency

gbs createimage(cr) sub-command depend on mic, which have many new
dependencies, so it's better to remove mic dependency and tell user
to install it manually if user really want it.

Change-Id: Ie0424e50829421648e745183888ccb78aedb211f

10 years agodepend on old stable pristine-tar
Zhang Qiang [Thu, 12 Dec 2013 10:04:07 +0000 (18:04 +0800)]
depend on old stable pristine-tar

Change-Id: I021e9c9dacc672be9f1908cc3777ad21217c8709

10 years agopackaging: roll back to original way to packaging
Zhang Qiang [Tue, 10 Dec 2013 12:47:26 +0000 (20:47 +0800)]
packaging: roll back to original way to packaging

Change-Id: I8da1b77ea550f97527bdc70abf24d960846722c1

10 years agobump to 0.20-rc1
Zhang Qiang [Tue, 10 Dec 2013 01:44:50 +0000 (09:44 +0800)]
bump to 0.20-rc1

Change-Id: Ibe6a9445fd334f39815fa570044379257da6255b

10 years agocreate_project: Copy more meta data from source project
Ed Bartosh [Mon, 9 Dec 2013 13:19:02 +0000 (15:19 +0200)]
create_project: Copy more meta data from source project

Copy debuginfo, build, useforbuild and publish meta from source project
when creating another project out of it.

That makes setup of linked project more consistent with source project
and prevent difference in package build statuses between source and target
projects.

Change-Id: I779f8574d368e58f5d6f4d37aee18b7ef57bf85b
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
10 years agoAdd submit text template mechanism 73/13273/6
Johannes Quast [Mon, 2 Dec 2013 13:47:39 +0000 (14:47 +0100)]
Add submit text template mechanism

The text template used by gbs submit can be changed
using a special gbs submit template file.

Fixes: DEVT-126

Change-Id: Ic9ba27698980ae229431fbbd8c5152297287add5
Signed-off-by: Johannes Quast <johannes.quast@intel.com>
10 years agoAdd aarch64 support
Zhang Qiang [Wed, 4 Dec 2013 05:48:15 +0000 (13:48 +0800)]
Add aarch64 support

Fixes: #1507

Change-Id: I691b8ece01de3b9a843b2cc784abea44c4d89da6

10 years agoremove CAN_ALSO_BUILD and QEMU_CAN_BUILD
Zhang Qiang [Wed, 4 Dec 2013 05:45:55 +0000 (13:45 +0800)]
remove CAN_ALSO_BUILD and QEMU_CAN_BUILD

These two structure is useless in the client gbs. CAN_ALSO_BUILD is
for osc and OBS comparation, and QEMU_CAN_BUILD useless now.

Change-Id: I838e23b2b593485512094056437a875d59e7e8a9

10 years agodepend on new version of depanneur & bump to 0.19.1
Zhang Qiang [Fri, 29 Nov 2013 04:13:29 +0000 (12:13 +0800)]
depend on new version of depanneur & bump to 0.19.1

Change-Id: I0f438fcbc8eca3cc31680519dd8d28cce463cbd2

10 years agoupdate error message
Zhang Qiang [Fri, 29 Nov 2013 03:41:37 +0000 (11:41 +0800)]
update error message

Change-Id: Ia3b25e76523e68dd67a760f74f7f6805d7fb4f5d

10 years agoUpdate help info for specifing buildconf and buildroot in gbs.conf
Zhang Qiang [Thu, 28 Nov 2013 02:34:17 +0000 (10:34 +0800)]
Update help info for specifing buildconf and buildroot in gbs.conf

build conf and build root can be specified in .gbs.conf using
'buildconf' and 'buildroot' keyes.

Fixes: #1219

Change-Id: I4f0afaae3359507e5c68aa8e9d30188b1677cddb

10 years agoRefine existing GBS FAQ
Rui Lv [Wed, 23 Oct 2013 08:46:01 +0000 (04:46 -0400)]
Refine existing GBS FAQ

To serve as basis for further enhancement

10 years agoUpdate GBS config file
Rui Lv [Wed, 30 Oct 2013 03:19:55 +0000 (23:19 -0400)]
Update GBS config file

Change-Id: I7962272be3fa651a5c1c297d57bb264e5992950d

10 years agodon't specify the default upstream-branch option
Zhang Qiang [Mon, 25 Nov 2013 00:54:40 +0000 (08:54 +0800)]
don't specify the default upstream-branch option

The builder (depanneur) and export module can take the correct
upstream-branch.

Change-Id: I78e2a5f323f350896f31e21efd6d9e053f88bacc

10 years agoEnable building with git-buildpackage
Zhang Qiang [Thu, 7 Nov 2013 06:16:18 +0000 (14:16 +0800)]
Enable building with git-buildpackage

Also change the Debian packaging format as 1.0 native and remove
unnecessary Debian packaging files from the (rpm) packaging/ directory.

Change-Id: I0dfcdfcee18afac95bbbc255bc00057eab360c1c
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoAttempt to bypass HTTP caches when fetching repomd.xml 18/11618/3
Łukasz Stelmach [Tue, 29 Oct 2013 13:48:06 +0000 (14:48 +0100)]
Attempt to bypass HTTP caches when fetching repomd.xml

If a repository and its repomd.xml changes frequently it may look
inconsistent to clients. Unlike other files in a repository repomd.xml
does not change its name along with contents like RPM packages and
metadata files with hashes in filenames. To get the most up-to-date
version additional HTTP headers (Pragma, Cache-Control) need to be passed.

Fixes: DEVT-110

Change-Id: I6a20f829d3a5331f9e99820fa46cdb497a5348ee
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Cc: Zhang, Qiang Z <qiang.z.zhang@intel.com>
10 years agouse replace way to get target branch instead of split release-0.19
Zhang Qiang [Mon, 28 Oct 2013 03:19:06 +0000 (11:19 +0800)]
use replace way to get target branch instead of split

Fixes: #1421

Change-Id: Icf9ccbf65ac7059488ea2f976a60d4a9eedbd75e

10 years agobump to offical version 0.19 0.19
Zhang Qiang [Tue, 22 Oct 2013 06:32:16 +0000 (14:32 +0800)]
bump to offical version 0.19

Change-Id: I2d79b333343a68adf90a3ae92a5d8c2b49dfc673

10 years agoUpgrade to gbs 0.19 rc2
Zhang Qiang [Mon, 21 Oct 2013 05:58:58 +0000 (13:58 +0800)]
Upgrade to gbs 0.19 rc2

Change-Id: If58c71d9a933253fa8a28f3347c47ac198d98cc5

10 years agoAdd --upstream-tag tab completion help info
Zhang Qiang [Mon, 21 Oct 2013 05:30:05 +0000 (13:30 +0800)]
Add --upstream-tag tab completion help info

Change-Id: I835dbcc0d8ca54c82bad83fe552f4ca0a265165c

10 years agoexport: recognize ${upstreamversion} in --upstream-tag option
Markus Lehtonen [Fri, 18 Oct 2013 08:53:19 +0000 (11:53 +0300)]
export: recognize ${upstreamversion} in --upstream-tag option

Handle the "meta-variable" correctly if given from the command line
option - previously it was correctly handled only when defined in the
config file.

Change-Id: Ib53798b70fab2467e1d3383885bbb4a4ce805e19
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoimport: support for --upstream-tag option
Markus Lehtonen [Fri, 18 Oct 2013 08:49:09 +0000 (11:49 +0300)]
import: support for --upstream-tag option

Change-Id: I68538150da79bd34b3e98697ae8bbbb14fd7d1ef
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobump to version 0.19 rc1, update changelog
Zhang Qiang [Fri, 18 Oct 2013 03:26:41 +0000 (11:26 +0800)]
bump to version 0.19 rc1, update changelog

Change-Id: I604869af7591760306df4b70c8ccf21545d5c5c0

10 years agoUpdate dependencies:
Zhang Qiang [Fri, 18 Oct 2013 00:01:20 +0000 (08:01 +0800)]
Update dependencies:

 - depend on new pristine-tar 1.28 version
 - dependencies of gbs subpackages:
     gbs --> gbs-api, gbs-export, gbs-remotbuild
     gbs-export->gbs-api
     gbs-remotebuild-> gbs-api, gbs-export.

Change-Id: I3fb39dd04c18639ace37ca7a9042683dd5464449

10 years agoUse commit sha1 instead of tagname in spec file VCS tag
Markus Lehtonen [Thu, 17 Oct 2013 10:53:44 +0000 (13:53 +0300)]
Use commit sha1 instead of tagname in spec file VCS tag

Change-Id: Iad46e761839b9abd8174ee874f4904d40b9abc66
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoSplit remotebuild module to seperate package
Zhang Qiang [Thu, 17 Oct 2013 08:01:16 +0000 (16:01 +0800)]
Split remotebuild module to seperate package

gbs remotebuild module is used by Tizen Backend service, so it's better to have
it separated.

Fixes: #1381

Change-Id: I2e06d3cc841dadb681d0a654ec256411abd96fd0

10 years agocherry-pick from release branch
Zhang Qiang [Thu, 17 Oct 2013 09:12:18 +0000 (17:12 +0800)]
cherry-pick from release branch

bump version to 0.18.1

Change-Id: Icf35a981ff77cf29f848d56ebd7775d9f3e92d17

10 years agoMerge "Update depenencies" into devel
Zhang Qiang [Thu, 17 Oct 2013 08:30:48 +0000 (01:30 -0700)]
Merge "Update depenencies" into devel

10 years agoUpdate depenencies
Zhang Qiang [Thu, 17 Oct 2013 07:18:28 +0000 (15:18 +0800)]
Update depenencies

- librpm-tizen
- git-buildpackage
- depanneur

Change-Id: If125cd4a1412d539515a934a36d8ffc1af86246e

10 years agoMerge "Add directory argument to gbs clone" into devel
Qiang Z Zhang [Wed, 16 Oct 2013 02:44:29 +0000 (19:44 -0700)]
Merge "Add directory argument to gbs clone" into devel

10 years agoAdd directory argument to gbs clone
Guan Junchun [Fri, 11 Oct 2013 10:07:56 +0000 (18:07 +0800)]
Add directory argument to gbs clone

With this patch, we can clone a repo to a specific directory
$ gbs clone remote_repo dir

Fixes: #1336

Change-Id: I72241337a2815b444c214ddb8ca8ea6b7fefb63f

10 years agoMerge "Replace review.tizen.org with tizen" into devel
Qiang Z Zhang [Mon, 14 Oct 2013 07:03:49 +0000 (00:03 -0700)]
Merge "Replace review.tizen.org with tizen" into devel

10 years agoReplace review.tizen.org with tizen
Rui Lv [Fri, 11 Oct 2013 07:33:06 +0000 (03:33 -0400)]
Replace review.tizen.org with tizen

This change partically solves the bug below:

https://bugs.tizen.org/jira/browse/TINF-289

10 years agoCatch exception if buildconf specified in gbs conf doesn't exist
Guan Junchun [Fri, 11 Oct 2013 02:54:20 +0000 (10:54 +0800)]
Catch exception if buildconf specified in gbs conf doesn't exist

Fixes: #1339

Change-Id: I0a6d326753815703423de95e1c49490cded12e8c