tools/gbs.git
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>
11 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>
11 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

11 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

11 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

11 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

11 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>
11 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>
11 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

11 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

11 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>
11 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

11 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

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

11 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

11 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

11 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

11 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

11 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

11 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

11 years agoRefactored reading local .gbs.conf
Ed Bartosh [Wed, 9 Oct 2013 07:23:15 +0000 (10:23 +0300)]
Refactored reading local .gbs.conf

If gbs is called as an API local .gbs.conf is not read if it's not in
the current directory. This change fixes this.

Change-Id: I642591bea4f2dd958cd13d11b365b6f4ef00e6c4
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoChange rpm.parse_spec() to rpm.SpecFile()
Li Jinjing [Tue, 10 Sep 2013 07:20:29 +0000 (03:20 -0400)]
Change rpm.parse_spec() to rpm.SpecFile()

Rpm.parse_spec() function has been deleted.

Use rpm.SpecFile() instead.

Fixed #1294

Change-Id: Ieae1cd61b3c2287e09d78d24d82db1e0921083ef

11 years agoReverse order when glob spec files
Yigang Wen [Fri, 6 Sep 2013 02:09:46 +0000 (10:09 +0800)]
Reverse order when glob spec files

Reverse the order of glob spec files in accordance with
git ls-tree spec files.

Fixes: #1270

Change-Id: I9eca3af4c1170e8309ce0c46f42f2593ae09e235

11 years agoAdd an ArgumentParser Action to load project conf
Zhang Qiang [Wed, 4 Sep 2013 05:38:06 +0000 (13:38 +0800)]
Add an ArgumentParser Action to load project conf

Without this patch project special gbs.conf will not
be loaded if gbs running out of project, for example:

 $ gbs export /path/to/project

This patch add an ArgumentParser Action to process
all gitdir positional argument

Fixes: #1272

Change-Id: Ia2e1ef8f9d58c6e3f6115d795bf0a503e692fb2c

11 years agoJust overwrite original config instead of clean up
Zhang Qiang [Wed, 4 Sep 2013 05:03:43 +0000 (13:03 +0800)]
Just overwrite original config instead of clean up

configmgr will load default config files, if -c specified new conf
file, which should be added to configmgr and the original default
keys should not removed, in some cases they are needed.

Fixes: #1273

Change-Id: If4451bf60a2683a2c7c753a5044f25ec53898da4

11 years agoupdate all spec files no matter if no --spec specified
Zhang Qiang [Tue, 3 Sep 2013 10:26:19 +0000 (18:26 +0800)]
update all spec files no matter if no --spec specified

Fixes: #1233

Change-Id: I5f3de2875273c552fce59141a1e7c4cd46ab51c2

11 years agotrack upstream/pristine-tar branch automatically
Zhang Qiang [Tue, 3 Sep 2013 05:45:20 +0000 (13:45 +0800)]
track upstream/pristine-tar branch automatically

This enable tarball generation from upstream/pristine-tar branch
and patch generation if upstream/pristine-tar branches exist in
remote branch.

Fixes: #1230

Change-Id: I9b846d1ae670e31bc5c0b429a0cabf641281fe7a

11 years agobump to offical 0.18 release version 0.18
Zhang Qiang [Mon, 26 Aug 2013 00:53:34 +0000 (08:53 +0800)]
bump to offical  0.18 release version

Change-Id: I3a24774e7fb21a49baa5241e9b8276f22b19f267

11 years agobump to gbs 0.18-rc2
Zhang Qiang [Thu, 22 Aug 2013 06:50:47 +0000 (14:50 +0800)]
bump to gbs 0.18-rc2

Updates including:
    - Update dependencies
    - Update release notes
    - Fix packaging conflict files issue on fedora 19

Change-Id: I3a522d5ef0f17ef486e8f98609cb733a04219f7d

11 years agoUpdate dependencies:depanneur/gbp/librpm-tizen
Zhang Qiang [Thu, 22 Aug 2013 06:39:51 +0000 (14:39 +0800)]
Update dependencies:depanneur/gbp/librpm-tizen

Change-Id: I0e6e6bbdc93aa8ec7023335d9badc5137a56118b

11 years agofix some files listed twice issue
Zhang Qiang [Thu, 22 Aug 2013 05:59:07 +0000 (13:59 +0800)]
fix some files listed twice issue

Change-Id: If0cc10ecf79d97b63c2f6262b2a3a3545c5b2d73

11 years agoupdate release notes
Zhang Qiang [Tue, 20 Aug 2013 14:41:27 +0000 (22:41 +0800)]
update release notes

Change-Id: Ib72f1df8ca39b0c86230d29cf2e71ccca31d3b3f

11 years agoBump to version 0.18
Zhang Qiang [Tue, 20 Aug 2013 14:24:52 +0000 (22:24 +0800)]
Bump to version 0.18

Change-Id: I07eee62f4f1d693a7afa4d9b2e1b5fdebedd0a0f

11 years agoAdd gbs zsh completion support #693
LingchaoX Xin [Fri, 9 Aug 2013 05:55:42 +0000 (13:55 +0800)]
Add gbs zsh completion support #693

~ $ gbs
build        -- local build package
changelog    -- update the changelog file with the git commit messages
chroot       -- chroot to build root
clone        -- clone a git repository
export       -- export files and prepare for build
import       -- import spec file/source rpm/tar ball to git repository
pull         -- update a package git repository
remotebuild  -- remote build package
submit       -- submit tag to gerrit and trigger building in OBS

~ $ gbs build -A
armv6l   armv7hl  armv7l   i586     x86_64

~ $ gbs changelog -
--conf                    -c  -- specify config file for gbs
--debug                   -d  -- debug output
--help                    -h  -- show this help message and exit
--message                 -m  -- use given message as the changelog entry
--packaging-dirdirectory      -- containing packaging files
--since                   -s  -- commit to start from
--spec                        -- specify a spec file to use. It should be a file name that GBS will find it in packaging dir
--verbose                 -v  -- verbose output
--version                 -V  -- show program's version number and exit

Change-Id: I049a3ad30cb6aed385e6c6421c594f7de421e5b8
Signed-off-by: LingchaoX Xin <lingchaox.xin@intel.com>
11 years agodepend on new git-buildpackage and bump to 0.17.2
Zhang Qiang [Fri, 19 Jul 2013 08:46:27 +0000 (16:46 +0800)]
depend on new git-buildpackage and bump to 0.17.2

Change-Id: I844a94c1d73440e7833c2cf49d3240edba394466

11 years agodepend on new gbp and bump to 0.17.1
Zhang Qiang [Tue, 16 Jul 2013 02:17:31 +0000 (10:17 +0800)]
depend on new gbp and bump to 0.17.1

Change-Id: I80ae343c109821deb213b5d5f170c80466e45a44

11 years agoformalize profile name to build conf, fix #1051
Zhang Qiang [Mon, 15 Jul 2013 07:25:32 +0000 (15:25 +0800)]
formalize profile name to build conf, fix #1051

profile name is used to generate build conf, which has some special
format:
  - should not start with digital
  - should not contain '-'

This patch generate well formated build conf file name from profile
name.

Change-Id: Iee69c0abf8316227cbb6e2845ce11bbb2eaf03e3

11 years agoupdate version to 0.17 in source code 0.17
Zhang Qiang [Tue, 9 Jul 2013 01:22:04 +0000 (09:22 +0800)]
update version to 0.17 in source code

Change-Id: I8077693c3b0b01db64efc7905ca9dedecc3db884

11 years agoskip invalid local repo
Zhang Qiang [Mon, 8 Jul 2013 07:41:52 +0000 (15:41 +0800)]
skip invalid local repo

Change-Id: I8d9f19a7c888c1dc7570500e850c141f9a54baa3

11 years agofix librpm dependency issue
Zhang Qiang [Thu, 4 Jul 2013 11:44:38 +0000 (19:44 +0800)]
fix librpm dependency issue

Change-Id: Ibc4556a3e8fbf6287991b8f61f073230fb01090a

11 years agoBump to 0.17 offical release version
Zhang Qiang [Thu, 4 Jul 2013 06:59:49 +0000 (14:59 +0800)]
Bump to 0.17 offical release version

Change-Id: I48678a6207afcd6364531f91a01975a4af4ec63c

11 years agoUpdate dependency of mic
Zhang Qiang [Thu, 4 Jul 2013 06:52:49 +0000 (14:52 +0800)]
Update dependency of mic

mic 0.20 is supported on CentOS, so gbs can depend mic

Change-Id: I69c55a2c5db8d79d313abe521cb4c75e46401352

11 years agobump to gbs 0.16 rc1
Zhang Qiang [Mon, 1 Jul 2013 07:22:18 +0000 (15:22 +0800)]
bump to gbs 0.16 rc1

Change-Id: Ia595340bf770932964224429529fef8a417e333e

11 years agobump to gbs 0.17
Zhang Qiang [Mon, 1 Jul 2013 06:28:45 +0000 (14:28 +0800)]
bump to gbs 0.17

Change-Id: I41ced1801ec4a6b50244f81480da5f049fb7256b

11 years agoUpdate dependencis
Zhang Qiang [Mon, 1 Jul 2013 06:35:08 +0000 (14:35 +0800)]
Update dependencis

update depanneur, git-buildpackage, librpm-tizen

Change-Id: I0326f07dfd31d1b0de8471c017a9c6e7aae03d0a

11 years agobugfix: forget checking .gbs.conf under current dir
Zhang Qiang [Fri, 28 Jun 2013 09:48:11 +0000 (17:48 +0800)]
bugfix: forget checking .gbs.conf under current dir

Change-Id: I8342400bbc4506e1dc1c5c4e9bacf0307fb6a7de

11 years agoreport error if specify top directory of new designed repo
Zhang Qiang [Fri, 28 Jun 2013 04:01:52 +0000 (12:01 +0800)]
report error if specify top directory of new designed repo

Change-Id: I7e7cfd5053971ab0bc73b98bda00e91b578ffc04

11 years agoSupport fetching build conf from repodata/ dir
Zhang Qiang [Fri, 28 Jun 2013 02:55:17 +0000 (10:55 +0800)]
Support fetching build conf from repodata/ dir

Change-Id: Ib0fe2f3485da52c33ed9b73979b183659008464c

11 years agoconvert local RPM repo to absolute path, or RepoParser will ignore it
Zhang Qiang [Wed, 26 Jun 2013 07:00:28 +0000 (15:00 +0800)]
convert local RPM repo to absolute path, or RepoParser will ignore it

Change-Id: I968cf68446fdf681b3b65c8325e9231f2bc026a0

11 years agofix lose efficacy issue of getting tmpdir if -c specfied
Zhang Qiang [Tue, 25 Jun 2013 03:46:52 +0000 (11:46 +0800)]
fix lose efficacy issue of getting tmpdir if -c specfied

Change-Id: I05670479ae4fef747a748c80c94e39c022a93a6f
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
11 years agoRaise ConfigError if referenced key is not defined in general section
Guan Junchun [Tue, 25 Jun 2013 03:37:59 +0000 (11:37 +0800)]
Raise ConfigError if referenced key is not defined in general section

Change-Id: Ia4de87b903bcd71f4b88183cee7d85e9402e7823

11 years agoAdd --packaging-branch for gbs clone sub-command
Zhang Qiang [Wed, 19 Jun 2013 07:28:22 +0000 (15:28 +0800)]
Add --packaging-branch for gbs clone sub-command

set main devel branch use --packaging-branch, and the default is master.

Change-Id: Ic79a85a3b6403d49259143349a1ccc84ce57bb51

11 years agoonly set work dir as dirname of gbs conf if work dir is not '.'
Zhang Qiang [Thu, 20 Jun 2013 15:58:18 +0000 (23:58 +0800)]
only set work dir as dirname of gbs conf if work dir is not '.'

If work_dir already set the correct path instead of '.', gbs should
not reset it

Change-Id: Iebae6b07ef2462adcffc21bc39b61c48fa42dbf4

11 years agosupport work_dir and buildconf options in gbs config, #1008
Zhang Qiang [Thu, 6 Jun 2013 06:46:22 +0000 (14:46 +0800)]
support work_dir and buildconf options in gbs config, #1008

work_dir is the topdir of all tizen source packages, and pre-built
build-conf git project will under that directory based on latest tizen
source code structure.

The new conf manager also support string interpolation, expecially for
work_dir, which can be used in specifying pre-built dir and build conf

build conf can be specified in gbs.conf now.

Examples of gbs.conf:

    [general]
    tmpdir=/var/tmp/export_dir/
    profile = profile.tizen2.1
    work_dir=~/local-source

    [repo.tizen2.1]
    url=${work_dir}/pre-built/

    [profile.tizen2.1]
    repos=repo.tizen2.1
    buildconf=${work_dir}/project-conf/build.conf

Structure of tizen source code

$ cd ~/local-source
$ tree .
  .
  |-- gbs-conf
  |   `-- gbs.conf
  |-- pre-built
  |-- project-conf
  |-- framework
  |-- ...
  `-- toolchains

Change-Id: Ia0e47500523dae09e90c0d4bee115e46628e3368

11 years agoMerge branch 'release-0.16' into devel
Zhang Qiang [Thu, 6 Jun 2013 23:18:25 +0000 (07:18 +0800)]
Merge branch 'release-0.16' into devel

11 years agoimport: give --create-missing-branches to git-import-srpm
Markus Lehtonen [Mon, 3 Jun 2013 09:36:29 +0000 (12:36 +0300)]
import: give --create-missing-branches to git-import-srpm

Makes importing into existing git repository easier as one doesn't need
to manually create any missing (master or upstream) branches.

Change-Id: I6b1f21bf7a99fc9810c7972166f1506007d75134
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoimport: enable --upstream-vcs-tag option for src.rpms
Markus Lehtonen [Mon, 3 Jun 2013 09:35:25 +0000 (12:35 +0300)]
import: enable --upstream-vcs-tag option for src.rpms

As this option was recently added into git-import-srpm.

Change-Id: Iaba0f33c58326a5f3a3d2781d996c7f3a52f6816
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoexport: disable fallback to native packaging
Markus Lehtonen [Thu, 30 May 2013 06:45:28 +0000 (09:45 +0300)]
export: disable fallback to native packaging

Remove the hackish fallback to native packaging of non-native packages.
That is, disable generation of one monolithic tarball for non-native
packages in case patch or upstream tarball generation happens to fail.

The fallback mode just too easily hides packaging mistakes.

Change-Id: I8eb64188fc0f124f892188995c099846fa0a3bc9
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agodepend on profile instead of build_id in remote repo
Zhang Qiang [Wed, 29 May 2013 08:17:24 +0000 (16:17 +0800)]
depend on profile instead of build_id in remote repo

It's more reasonable to depend on user defined profile name for local
repo generation, instead of depend on build_id in remote repo now.

Change-Id: I3467168e50b8c2041b5f5d682383bffbd24411e3

11 years agobump to 0.16 for official release release-0.16 0.16
Zhang Qiang [Fri, 17 May 2013 05:45:16 +0000 (13:45 +0800)]
bump to 0.16 for official release

Change-Id: If79c1ef6d72bd5285d0810ea692d00f8c9925755

11 years agobump to gbs 0.16 rc2
Zhang Qiang [Wed, 15 May 2013 04:46:03 +0000 (12:46 +0800)]
bump to gbs 0.16 rc2

Change-Id: I7fe4be0385eb7c3ab004468b24006b705d546761

11 years agodon't install mic on centos and give error if mic does not exist
Zhang Qiang [Thu, 16 May 2013 07:30:33 +0000 (15:30 +0800)]
don't install mic on centos and give error if mic does not exist

Currently, CentOS has not been supportted by mic, so user have to
install mic manually on CentOS

Change-Id: I9f245b34b6dcb1f6df1f7b7565fb3efa16b50b82

11 years agodepend on mic
Zhang Qiang [Thu, 16 May 2013 06:59:17 +0000 (14:59 +0800)]
depend on mic

Change-Id: I0dae0402b71a52fe1ce6a0ac7c90e541c10eca99

11 years agorefine createimage to return None zero if failed
Zhang Qiang [Thu, 16 May 2013 02:18:47 +0000 (10:18 +0800)]
refine createimage to return None zero if failed

Change-Id: Idf0ba080fb2c32ec5f0ece3c35021fbe84399c90

11 years agobump to 0.16 rc1
Zhang Qiang [Tue, 14 May 2013 09:32:25 +0000 (17:32 +0800)]
bump to 0.16 rc1

Change-Id: I2d914c932db0e0b6eab724299bdc1c94d15333c7

11 years agobump to gbs 0.16
Zhang Qiang [Tue, 14 May 2013 06:26:10 +0000 (14:26 +0800)]
bump to gbs 0.16

Change-Id: Ie470fc40b16e343fea1f05d5fc1e0521f3b6b909

11 years agoRevert "Implemented BuildData API"
Ed Bartosh [Mon, 13 May 2013 10:26:02 +0000 (13:26 +0300)]
Revert "Implemented BuildData API"

This  reverts commit 927ec38d83ab355905379997aad73c672a7505ee.

Change-Id: I2b393c7db05d3e3190f549448271d92f3d3bf9e4

11 years agodepend new git-buildpackage and depanneur
Zhang Qiang [Tue, 14 May 2013 05:46:20 +0000 (13:46 +0800)]
depend new git-buildpackage and  depanneur

Change-Id: I4628bac18ab6579e7446ee27f9ac90c25d83b30d

11 years agogive warning for new structure of repo structure
Zhang Qiang [Mon, 13 May 2013 07:33:44 +0000 (15:33 +0800)]
give warning for new structure of repo structure

Change-Id: I87b24bb8bc3af5387091362c9bb96a3181b54e61

11 years agopackaging: don't depend on pristine-tar
Markus Lehtonen [Mon, 13 May 2013 11:19:23 +0000 (14:19 +0300)]
packaging: don't depend on pristine-tar

GBS doesn't depend on pristine-tar. GBP does.

Change-Id: I365f17462f4fbfca75092bffd75175917049256f
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoexport: user lower compression level for orig tarballs
Markus Lehtonen [Fri, 10 May 2013 14:39:11 +0000 (17:39 +0300)]
export: user lower compression level for orig tarballs

For better balance between time / tarball size. Speeds up generation of
especially gzipped tarballs.

Change-Id: I8b88cd70c83cc1a56649fcf4213b2777f3d8162f
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoPylint:fixed pylint findings
Zhang Qiang [Wed, 8 May 2013 01:57:28 +0000 (09:57 +0800)]
Pylint:fixed pylint findings

Change-Id: Ic2f8454dc2d7afd1a7cc60ca769f39eba0f810de

11 years agoImplemented BuildData API
Ed Bartosh [Thu, 2 May 2013 11:26:14 +0000 (14:26 +0300)]
Implemented BuildData API

This API is responcible for generating and parsing build.xml

Change-Id: I4a8f5df93ceb778f8fb0ba1e52abe68895302b3d
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoMoved gbs export to separate package
Ed Bartosh [Thu, 2 May 2013 11:02:01 +0000 (14:02 +0300)]
Moved gbs export to separate package

gbs export is used by gbs build service, so it's better to have
it separated.

Change-Id: Ide54579ac3c4a88225ab77cf5410155026c938fc
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoRemove the part of prepare ks and group, only leave cr subcommand
Zhang Qiang [Sun, 28 Apr 2013 02:31:44 +0000 (10:31 +0800)]
Remove the part of prepare ks and group, only leave cr subcommand

This patch revert patches during implement this week, and only
left gbs createimage subcommand.

ks file and group file preparation will be implemented in another\
subcommand

Change-Id: Id431234330eae09ed4d9957c834bdfff15fba2f8

11 years agouse extra local vars instead of using class vars to avoid overwrite
Zhang Qiang [Thu, 25 Apr 2013 01:11:17 +0000 (09:11 +0800)]
use extra local vars instead of using class vars to avoid overwrite

Change-Id: Id1df156b6851e2bccab9641eb1aeaa9f466aabe0

11 years agoPylint:fixed pylint findings and removed unused libs
Zhang Qiang [Wed, 24 Apr 2013 13:46:41 +0000 (21:46 +0800)]
Pylint:fixed pylint findings and removed unused libs

Change-Id: Icb19383d82dbd4b0f993e95e90c0a3a471094423

11 years agoadd createimage subcommand
Zhang Qiang [Wed, 17 Apr 2013 02:37:02 +0000 (10:37 +0800)]
add createimage subcommand

Input:
    ks file specified by --ks-file. Or,
    ks directory, configured in gbs.conf

Output:
    image created by mic, the output dir is configured in gbs.conf
    with image_dir key.

createimage subcommand also support creating special profile image
with -P/--profile.

Change-Id: If5651c19f0a15730bbce2868e44308fb9a000e9f

11 years agodetect tizen version from conf file if -D specified
Zhang Qiang [Tue, 23 Apr 2013 09:50:35 +0000 (17:50 +0800)]
detect tizen version from conf file if -D specified

Change-Id: I49b6f17642a8918b37c840df9a1e9c17dcf9d312

11 years agoremove the exists checking of local repo
Zhang Qiang [Tue, 23 Apr 2013 08:33:24 +0000 (16:33 +0800)]
remove the exists checking of local repo

KSRepoUpdater just responsible for adding / updating repos.

Also this is the easist way to fix local repo issue, as in future
We will generate ks file locally, so we can don't need change build
module much for this issue.

Change-Id: I60fe587b0e716c57c5747a1294ffe95fcedb7955

11 years agodownload ks files from remote repo and update it with local repo
Zhang Qiang [Thu, 18 Apr 2013 02:36:57 +0000 (10:36 +0800)]
download ks files from remote repo and update it with local repo

KS files are downloaded from remote repo, and local repo will be
added to involve building image.

The authorization info will be added to exist repo

Change-Id: I7d7af07426cbd3893df44c74e45efa69ee5d880e

11 years agobugfix: check real group/pattern name to fix backtrace issue
Zhang Qiang [Mon, 22 Apr 2013 09:54:50 +0000 (17:54 +0800)]
bugfix: check real group/pattern name to fix backtrace issue

Change-Id: I4bbd9aa3e92b5172323223fbb4c5ae3e0375fc87