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

11 years agoadd ks_dir and image_dir for gbs conf
Zhang Qiang [Thu, 18 Apr 2013 02:30:55 +0000 (10:30 +0800)]
add ks_dir and image_dir for gbs conf

ks_dir and image_dir have default value in [general] seciton, and
each profile sections can set their own values

Change-Id: Ib5999fb5cb9c4fa300852aa76c1cf19f655bca5d

11 years agodownload group/patterns files from remote repodata
Zhang Qiang [Fri, 12 Apr 2013 07:23:22 +0000 (15:23 +0800)]
download group/patterns files from remote repodata

group/patterns files are used for depanneur to create local repo

Change-Id: I1fb46fd11f52f0db7e067b4b8acfc7a8c391d430

11 years agoMerge "Cleaned up packaging" into devel
Qiang Z Zhang [Thu, 18 Apr 2013 08:27:13 +0000 (01:27 -0700)]
Merge "Cleaned up packaging" into devel

11 years agoCleaned up packaging
Ed Bartosh [Fri, 12 Apr 2013 15:45:03 +0000 (18:45 +0300)]
Cleaned up packaging

Fixed debian packaging. Simplified debian/rules. Fixed some lintian
findings (not all of them).

Get rid of outdated distfiles/ directory

Change-Id: Ideb6bf8352a09a3358492d9a8c721ebe2fe877c5
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoRemove dev option in Makefile
LingchaoX Xin [Tue, 16 Apr 2013 08:33:02 +0000 (16:33 +0800)]
Remove dev option in Makefile

Since its' support is removed from 09bb35e

Change-Id: I48eeb4d9eeb264a6d84050376a8793685c9261a7

11 years agoPylinted
Ed Bartosh [Mon, 8 Apr 2013 13:07:53 +0000 (16:07 +0300)]
Pylinted

Change-Id: I97f7536c132d74224783b70116857dcc0b6bc6e2
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoFixed bug in oscapi/get_meta API
Ed Bartosh [Wed, 3 Apr 2013 15:35:22 +0000 (18:35 +0300)]
Fixed bug in oscapi/get_meta API

This is actually a typo. I had this in the code, but somehow lost in
comit :(

Change-Id: If5699c4f2373563979dd965d8d0e780429ca71c9
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoofficial release gbs 0.15 release-0.15 0.15
Zhang Qiang [Wed, 3 Apr 2013 07:35:03 +0000 (15:35 +0800)]
official release gbs 0.15

- update docs/changelog
- bump to official 0.15

Change-Id: I6770f691e0e48d6f2d82766148f22283d25b2579

11 years agoMerge "export: fix exporting multiple spec files" into release-0.15
Qiang Z Zhang [Wed, 3 Apr 2013 03:08:59 +0000 (20:08 -0700)]
Merge "export: fix exporting multiple spec files" into release-0.15

11 years agoexport: fix exporting multiple spec files
Markus Lehtonen [Tue, 2 Apr 2013 08:14:13 +0000 (11:14 +0300)]
export: fix exporting multiple spec files

We need to use the 'force-create' option of gbp. Otherwise gbp will
return an error if pristine-tar checkout fails (pristine-tar branch is
found but the tarball is not committed there), as gbs uses the
'pristine-tar' option.

For subsequent spec files, use the 'no-create-orig' option of gbp to
prevent re-creation of tarballs.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoudpate to gbs 0.15.rc2
Zhang Qiang [Tue, 2 Apr 2013 06:47:50 +0000 (14:47 +0800)]
udpate to gbs 0.15.rc2

Change-Id: Ic79a3c2f67000628c6718830963de8637d57c8fb

11 years agosupport updating multiple spec files
Zhang Qiang [Mon, 1 Apr 2013 08:41:34 +0000 (16:41 +0800)]
support updating multiple spec files

If --spec specified, only updated specified spec file, othewise
update all spec files, including:
  - Add VCS tag
  - Add patches

Change-Id: I32a469a0140d90ca2d2bceb110d4e4f9ab0301e6

11 years agofix debian packaging issue
Zhang Qiang [Mon, 1 Apr 2013 04:44:05 +0000 (12:44 +0800)]
fix debian packaging issue

Change-Id: I117de8f371d0c0ae0660d4c526cc2f68281acbbe

11 years agobump to release 0.15.rc1
Zhang Qiang [Sun, 31 Mar 2013 13:22:18 +0000 (21:22 +0800)]
bump to release 0.15.rc1

Change-Id: I9a8a54547d87e0bfece0d2dde3b1e140ebf99db8

11 years agoUpdate version to 0.15
Zhang Qiang [Sun, 31 Mar 2013 12:37:53 +0000 (20:37 +0800)]
Update version to 0.15

Change-Id: I812db67a95f549a0716c1d737331d5d882870355

11 years agofix typo in get_meta
Hasan Wan [Fri, 29 Mar 2013 09:13:02 +0000 (17:13 +0800)]
fix typo in get_meta

Signed-off-by: Hasan Wan <hasan.wan@intel.com>
11 years agoMerge "support creating -32bit/-64bit/-x86 rpms for other archs, #852" into devel
Zhang Qiang [Fri, 29 Mar 2013 09:15:32 +0000 (02:15 -0700)]
Merge "support creating -32bit/-64bit/-x86 rpms for other archs, #852" into devel

11 years agoMoved gbs APIs to separate package
Ed Bartosh [Thu, 28 Mar 2013 16:19:39 +0000 (18:19 +0200)]
Moved gbs APIs to separate package

gbs APIs can be used by external software, so it's better to have them
separated. It would make them installable without the need to install
gbs with a lot of dependencies.

Change-Id: I5ae0332973d89c552e5865217c1e0198e3497722
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agosupport creating -32bit/-64bit/-x86 rpms for other archs, #852
Zhang Qiang [Thu, 28 Mar 2013 06:44:14 +0000 (14:44 +0800)]
support creating -32bit/-64bit/-x86 rpms for other archs, #852

This option is just like --baselibs of build script

Change-Id: I213eb7bed1da2f87971c9b58d33c5031d7812fb5

11 years agodepend on new version of git-buildpackge-rpm
Zhang Qiang [Thu, 28 Mar 2013 01:36:53 +0000 (09:36 +0800)]
depend on new version of git-buildpackge-rpm

Change-Id: Ie40ecd776b45a5f3473a33488ce6f2ff2db48615

11 years agoRemoved dependency to git-core
Ed Bartosh [Fri, 22 Mar 2013 09:50:39 +0000 (11:50 +0200)]
Removed dependency to git-core

gbs should not depend on git-core as all git operations should be done
using gbp git API.

Change-Id: I00023cab1fa0d96ee4cabc38de183555d01b300e
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoCode cleanup for oscapi
Ed Bartosh [Tue, 26 Mar 2013 17:46:19 +0000 (19:46 +0200)]
Code cleanup for oscapi

Change-Id: Ib4825596ee1e0b8c19c628539b4b7fe4e18b2e99
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoAdded new methods to oscapi
Ed Bartosh [Tue, 26 Mar 2013 17:39:36 +0000 (19:39 +0200)]
Added new methods to oscapi

Added methods to get/set meta and description for projects and packages.

Change-Id: I7b97cb219314462737442e395e85e5834aee34e1
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoAdded new parameter to create_project method
Ed Bartosh [Tue, 26 Mar 2013 12:35:39 +0000 (14:35 +0200)]
Added new parameter to create_project method

Added new parameter 'description' to be able to specify description of
the new project.

Change-Id: I35c6af7721714a8cffbaad1074a782faf37e94d0
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoAdd .gbp.conf
Markus Lehtonen [Tue, 26 Mar 2013 09:43:41 +0000 (11:43 +0200)]
Add .gbp.conf

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agopackaging: don't force tarball creation in Makefile
Markus Lehtonen [Tue, 26 Mar 2013 09:46:24 +0000 (11:46 +0200)]
packaging: don't force tarball creation in Makefile

Makes Makefile utilizable when building with GBP.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agobump to release 0.15
Zhang Qiang [Mon, 25 Mar 2013 22:50:19 +0000 (18:50 -0400)]
bump to release 0.15

Change-Id: I1c3adeae365b77b43b4995af02ac2970fc589e1d

11 years agoMerge "Add Tizen support" into devel
Zhang Qiang [Mon, 25 Mar 2013 07:59:16 +0000 (00:59 -0700)]
Merge "Add Tizen support" into devel

11 years agoAdd Tizen support
Zhang Qiang [Mon, 25 Mar 2013 21:26:53 +0000 (17:26 -0400)]
Add Tizen support

Change-Id: I593d193f30867df97c86ff028ed4416750f58d2d

11 years agodepend on pristine-tar (>= 1.26), fix #793
Zhang Qiang [Mon, 25 Mar 2013 20:27:54 +0000 (16:27 -0400)]
depend on pristine-tar (>= 1.26), fix #793

Change-Id: I88564e4404241265fbaf36a1f784e25c39ac8c98

11 years agoMerge "Added nose, mock and coverage to .test-requires" into devel
Qiang Z Zhang [Mon, 25 Mar 2013 07:58:01 +0000 (00:58 -0700)]
Merge "Added nose, mock and coverage to .test-requires" into devel

11 years agodepend on osc 0.139.0
Zhang Qiang [Wed, 20 Mar 2013 16:09:41 +0000 (12:09 -0400)]
depend on osc 0.139.0

Change-Id: Ie705a4aa43975a1fbbeff628bb344345949ba1df

11 years agoAdded nose, mock and coverage to .test-requires
Ed Bartosh [Fri, 22 Mar 2013 17:29:32 +0000 (19:29 +0200)]
Added nose, mock and coverage to .test-requires

In order to install nose, mock and coverage on CentOS from Tools:Devel
those packages have been added to packaging/.test-requires. This file is
used by OTC Tools Tester to obtain packages, needed for testing.

Change-Id: Ib8ecbfff98ee26f8bf68bffb3775fd7c29ef3402
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoImplemented support for project deletion in oscapi
Ed Bartosh [Mon, 11 Mar 2013 18:08:03 +0000 (20:08 +0200)]
Implemented support for project deletion in oscapi

One more feature for oscapi. This is also requried by backend services.

Change-Id: Ia6210a294d132e1d4228962f059a95cc4a3283ac
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoImplemented support for linked projects in oscapi
Ed Bartosh [Mon, 11 Mar 2013 15:55:26 +0000 (17:55 +0200)]
Implemented support for linked projects in oscapi

Now it's possible to create linked projects and set linkdep type for
them using oscapi. This feature makes API more powerful and it's also
going o be used by backend services.

Change-Id: Ica91126c52851b0e06529ccea641a012e59793a7
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoDepend on new librpm-tizen: 4.11.0.1.tizen20130304-tizen20130307
Zhang Qiang [Sat, 9 Mar 2013 00:41:36 +0000 (19:41 -0500)]
Depend on new librpm-tizen: 4.11.0.1.tizen20130304-tizen20130307

Change-Id: Ib8dda77ec07e6743455d1e22ac5af4008545ca20

11 years agobump to official release version 0.14 0.14
Zhang Qiang [Fri, 1 Mar 2013 19:57:03 +0000 (14:57 -0500)]
bump to official release version 0.14

Change-Id: Ic8df2d82b9160db26828356e1026ae9cd7783fbf

11 years agosync docs from stg.tizen.org and bump to 0.14.rc3
Zhang Qiang [Fri, 1 Mar 2013 16:16:15 +0000 (11:16 -0500)]
sync docs from stg.tizen.org and bump to 0.14.rc3

Change-Id: I5023e5bbcde79c81695284d104ff92b1b919410d

11 years agoDepend on new 'Provodes' of pristine-tar to make pbzip2 installed correctly
Zhang Qiang [Thu, 28 Feb 2013 00:14:59 +0000 (19:14 -0500)]
Depend on new 'Provodes' of pristine-tar to make pbzip2 installed correctly

Only Fedora/suse/CentOS needed, Ubuntu have pbzip2 in pristine-tar's
control file.

Change-Id: I8324f6778ad4f3b42581a03b89c28f22809f7622

11 years agodepend on new librpm-tizen: 4.10.91.tizen20121215-tizen20130226
Zhang Qiang [Wed, 27 Feb 2013 15:44:50 +0000 (10:44 -0500)]
depend on new librpm-tizen: 4.10.91.tizen20121215-tizen20130226

Remove Recommends: librpm-tizen can't be upgraded correctly

We have to use 'equal' this time to make librpm-tizen upgrade correctly.
We can change to '>=' next time.

Change-Id: Ia05d64b6f8a2ccc501bad4e11bc587fcc056b7c6

11 years agoBump to 0.14.rc2 for pre-release
Zhang Qiang [Tue, 26 Feb 2013 17:32:06 +0000 (12:32 -0500)]
Bump to 0.14.rc2 for pre-release

Change-Id: I5d13f9aa0ff5e8367d87e7a538e0562fc462a542

11 years agoUpdate gbs version to 0.14
Zhang Qiang [Tue, 26 Feb 2013 21:45:38 +0000 (16:45 -0500)]
Update gbs version to 0.14

Change-Id: If4f730ca996da71850c705af01d04e4a3a746fbf

11 years agoUpdate dependency and Bump to gbs version 0.14
Zhang Qiang [Thu, 21 Feb 2013 20:08:33 +0000 (15:08 -0500)]
Update dependency and Bump to gbs version  0.14

Change-Id: I1e6ec2f999ff5189bc620d2c065c084d3207826a

11 years agorequired python-argparse for python 2.6 to support CentOS
Zhang Qiang [Fri, 22 Feb 2013 23:46:24 +0000 (18:46 -0500)]
required python-argparse for python 2.6 to support CentOS

Change-Id: Ie84a3324797766b2a35f35b578d8d540e211f2bc

11 years agoRemove deprecated arch list and update --arch help info
Zhang Qiang [Thu, 21 Feb 2013 17:21:47 +0000 (12:21 -0500)]
Remove deprecated arch list and update --arch help info

Change-Id: Ida78cf2f0157b3b1935ea6653b1e0ccc2d0cb488

11 years agoMerge "Remove default upstream_branch value from command option, #749" into devel
Zhang Qiang [Thu, 21 Feb 2013 03:11:56 +0000 (19:11 -0800)]
Merge "Remove default upstream_branch value from command option, #749" into devel

11 years agoMerge "packaging: change librpm-tizen dependency to "recommends"" into devel
Qiang Z Zhang [Thu, 21 Feb 2013 00:16:57 +0000 (16:16 -0800)]
Merge "packaging: change librpm-tizen dependency to "recommends"" into devel

11 years agoRemove default upstream_branch value from command option, #749
Zhang Qiang [Sat, 27 Oct 2012 18:56:11 +0000 (14:56 -0400)]
Remove default upstream_branch value from command option, #749

The default value 'upstream' can be got from gbs.conf.
Without this patch, upstream_branch keys from gbs.conf can't be
used forever.

Change-Id: Ia007a73ec0ce9522ed42768cf9cc7bc471fda5df

11 years agoUpdate --binary-list and add --binary-from-file two options. #720
Huang Hao [Wed, 20 Feb 2013 08:30:27 +0000 (16:30 +0800)]
Update --binary-list and add --binary-from-file two options. #720

Rename old --binary-list option to --binary-from-file and add a
new --binary-list to accept a comma-separated string to specify
binary list of packages to build.

Change-Id: Icaea10e902915dc08410efb027575a446c024fb9

11 years agopackaging: change librpm-tizen dependency to "recommends"
Markus Lehtonen [Fri, 8 Feb 2013 08:50:58 +0000 (10:50 +0200)]
packaging: change librpm-tizen dependency to "recommends"

Use "recommends" instead of "requires", where supported, as librpm-tizen
is not a hard dependency for GBS to work.

This has been requested by e.g. Debian users who cannot use the
librpm-tizen package built for Ubuntu but who are able to install the
other noarch tools just fine.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoUse subprocess.Popen instead of API ony exists in new version of python
Zhang Qiang [Fri, 8 Feb 2013 06:10:02 +0000 (14:10 +0800)]
Use subprocess.Popen instead of API ony exists in new version of python

Change-Id: I154e008927fe578042565b59992d053a6fd80888

12 years agoNo need remove files and 'commitfilelist' command will do that, #731\
Zhang Qiang [Sun, 14 Oct 2012 19:48:53 +0000 (15:48 -0400)]
No need remove files and 'commitfilelist' command will do that, #731\

Change-Id: I69b9a673d08a22f5c5a337f2e96f59a87cd5f113

11 years ago--deps and --rdeps support,#704
Zhang Qiang [Tue, 5 Feb 2013 19:19:50 +0000 (14:19 -0500)]
--deps and --rdeps support,#704

--rdeps: build specified packages and packages depend on them
--deps: build all specified packages and packages they depend on

Change-Id: If5470238eb57bea48e1e316e35c0ab492493ccd9

11 years agoAdd more updates to release notes release-0.13 0.13
Zhang Qiang [Wed, 30 Jan 2013 21:45:56 +0000 (16:45 -0500)]
Add more updates to release notes

Change-Id: I1506a7401ecd5c415f3f67578c267187ef90a5f4

11 years agoUpdate docs based on changes of gbs 0.13
Zhang Qiang [Tue, 29 Jan 2013 17:33:21 +0000 (12:33 -0500)]
Update docs based on changes of gbs 0.13

Change-Id: I5190af8f727b4296677b82b86def828fb260d587

11 years agodepend on librpm-tizen for spec parser, fix #601
Zhang Qiang [Tue, 29 Jan 2013 02:20:59 +0000 (21:20 -0500)]
depend on librpm-tizen for spec parser, fix #601

Change-Id: Ifdc0bd6f0c3c5584a6ed2ff8133a8a7102a27f23

11 years agoinstall bash completion file as gbs.sh on fedora/suse
Zhang Qiang [Tue, 29 Jan 2013 01:50:33 +0000 (20:50 -0500)]
install bash completion file as gbs.sh on fedora/suse

On openSUSE, only files with suffix .sh can be loaded automatically.

Change-Id: Iaf46b0e96f90a0de81b954add06077fd28601918

11 years agoAdd tag format check
Zhang Qiang [Mon, 28 Jan 2013 16:41:12 +0000 (11:41 -0500)]
Add tag format  check

Currently, valid tag format is: submit/$target/$date.$time

Change-Id: Ie209565c1dc20bdc9e27a46579da5dbc902432f9

11 years agobump to gbs 0.13
Zhang Qiang [Fri, 18 Jan 2013 22:07:35 +0000 (17:07 -0500)]
bump to gbs 0.13

Update dependency:
     git-buildpackage-rpm (>= 0.6.0git20121124-tizen20130123),
     depanneur (>= 0.4),

Update changelog

Change-Id: I49404cf5e3db13783f8c021eec713517819ba9a9

11 years agowrite a regular expression to parse build server results
Zhang Qiang [Mon, 21 Jan 2013 23:32:20 +0000 (18:32 -0500)]
write a regular expression to parse build server results

If no build results, report correct no build results info

Change-Id: I0f8e09a584ec1ab7bab238229347755cefd5b073

11 years agoRemove useless tizen config
Zhang Qiang [Mon, 21 Jan 2013 17:06:34 +0000 (12:06 -0500)]
Remove useless tizen config

Change-Id: I27525c82d2fa2ddc7106f5a114096bf83c9d702d

11 years agoAdd tab completion file support
Zhang Qiang [Mon, 21 Jan 2013 17:10:18 +0000 (12:10 -0500)]
Add  tab completion file support

Change-Id: I1a122796d1374417d7e260b025303cd7223bcae4

11 years agoDon't break link structure if package is a link in OBS, #675
Zhang Qiang [Fri, 18 Jan 2013 16:06:09 +0000 (11:06 -0500)]
Don't break link structure if package is a link in OBS, #675

Change-Id: Iac1991d81f996e3f8f4d8368a9bafbea824af723

11 years agoAdd missing --no-patch-export options for remotebuild
Zhang Qiang [Fri, 18 Jan 2013 16:05:35 +0000 (11:05 -0500)]
Add missing --no-patch-export options for remotebuild

Change-Id: I9730b05c0de08e06b27e9c1b22408a8f72230e07

11 years agoAdd --tag option for submit module to support group submission, #596
Zhang Qiang [Thu, 17 Jan 2013 22:43:31 +0000 (17:43 -0500)]
Add --tag option for submit module to support group submission, #596

workflow of group submission:

gbs side:

1) one developer call 'gbs sr' to submit a patch, and he/she told
   other developer the tag name, created by gbs for this submission.
2) other developer use --tag to specified the same tag to submit
   other packages.

backend service:

Creating different OBS build project for different tag, and all submission
with the same tag would be submit to the same OBS project for building.

Release engineer:

All packages in the same OBS build project should be accept at the same
time

Change-Id: I04b838b0c9fc9cf469b814223b43f5bbcde9860e

11 years agocmd_pull: add --all cmdline option
Markus Lehtonen [Tue, 15 Jan 2013 15:46:11 +0000 (17:46 +0200)]
cmd_pull: add --all cmdline option

Updates all remote-tracking branches that have identical name in the
remote.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoMerge "Implement pull subcommand" into devel
Qiang Z Zhang [Thu, 17 Jan 2013 08:43:10 +0000 (00:43 -0800)]
Merge "Implement pull subcommand" into devel

11 years agoMerge "Implement clone subcommand" into devel
Qiang Z Zhang [Thu, 17 Jan 2013 08:28:02 +0000 (00:28 -0800)]
Merge "Implement clone subcommand" into devel

11 years agoImplement pull subcommand
Markus Lehtonen [Tue, 15 Jan 2013 11:24:11 +0000 (13:24 +0200)]
Implement pull subcommand

For updating a git repository representing a package managed with gbs.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoImplement clone subcommand
Markus Lehtonen [Tue, 15 Jan 2013 11:24:11 +0000 (13:24 +0200)]
Implement clone subcommand

For cloning a git repository representing a package managed with gbs.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoOnly check permission if outdir exists
Zhang Qiang [Wed, 16 Jan 2013 06:53:18 +0000 (14:53 +0800)]
Only check permission if outdir exists

- raise error if make dir fails
- only check permission of outdir if outdir exists

Change-Id: Id86dee7093d38bf8861d88bcf299cb902fac6da2

11 years agofix misleading error handling while no spec file found
Zhang Qiang [Wed, 16 Jan 2013 06:38:22 +0000 (14:38 +0800)]
fix misleading error handling while no spec file found

Change-Id: I7be2d57cd5c9e1c2756686cb9f43d4eb1a998fd0

11 years agoArch clean up, #654
Zhang Qiang [Mon, 14 Jan 2013 02:30:32 +0000 (10:30 +0800)]
Arch clean up, #654

Remove unsupportted arches, and only leave x86_64, i586, armv7l,
armv7hl, armv6l. ia32,i686,i386 are deprecated, but can be supportted
in gbs 0.13, and remove totally start from gbs 0.14

Update docs/GBS.rst, and use i586 for all examples and logs.

Change-Id: Ib7e936e5169cf725d40570da3e125a412eea3fde

11 years agoRe-orgnize option help info of build module, #595
Zhang Qiang [Thu, 10 Jan 2013 08:05:38 +0000 (16:05 +0800)]
Re-orgnize option help info of build module, #595

- Clean up examples
- Only five group left:
  * build configuration options
  * build env options
  * speed up building options
  * git-tree options
  * package selection options

Change-Id: Iba7ba18a990f188a7d58b8258d7bddb87b3d7658

11 years agoCheck write permission of output dir to avoid traceback, #617
Zhang Qiang [Wed, 9 Jan 2013 12:07:49 +0000 (20:07 +0800)]
Check write permission of output dir to avoid traceback, #617

Change-Id: I8c343279b1d7791016c12aff2310e4c2d28c5443

11 years agoAdd --no-patch-export options for export/build module, #594
Zhang Qiang [Tue, 8 Jan 2013 07:27:03 +0000 (15:27 +0800)]
Add --no-patch-export options for export/build module, #594

with --no-patch-export, gbs does not create patches between
upstream and export-treeish, and and create tar ball from the
export-treeish instead of upstream branch

Change-Id: Iabad13eb75c425a104f20f507ae265801ab6aa3b

11 years agoadd more import options, #594
Zhang Qiang [Mon, 7 Jan 2013 01:43:51 +0000 (09:43 +0800)]
add more import options, #594

--filters for filtering out e.g. scm directories
only for srpms and spec file options:
 --allow-same-version for re-importing the same version
 --native option for telling that "we're" the upstream
 --no-patch-import to prevent trying of importing patches
only for upstream tar ball options:
 --upstream-vcs-tag: setting a upstream git tag as the parent.

Change-Id: Ib90a0520e027f3e7df777e870e1172beb9e6e9d7

11 years agoremove checking packaging dir in export module, fix #635
Zhang Qiang [Mon, 7 Jan 2013 05:30:55 +0000 (13:30 +0800)]
remove checking packaging dir in export module, fix #635

packaging dir will be checked while guessing spec file.

Change-Id: I31409b41372018637bbf1bba608dfff84805ebe9

11 years agoClean up build options and group them, #595
Zhang Qiang [Fri, 28 Dec 2012 02:49:13 +0000 (10:49 +0800)]
Clean up build options and group them, #595

Change-Id: I39494c869d1e9fcaa1fa7b89b1ab4e8b86e59eee

11 years agomerge docs from release-0.12 to devel branch
Zhang Qiang [Fri, 28 Dec 2012 01:14:12 +0000 (09:14 +0800)]
merge docs from release-0.12 to devel branch

Change-Id: I69de1536457f4d39a2a23d3cecaf0421aca851b0

11 years agouse lstrp() to strip prefix '/'
Zhang Qiang [Fri, 7 Dec 2012 01:36:56 +0000 (09:36 +0800)]
use lstrp() to strip prefix '/'

Change-Id: I4106d71e3a602daee8f09545b709ebb0c09f4e8a

11 years agoRemoved duplicated code
Ed Bartosh [Mon, 10 Dec 2012 12:14:57 +0000 (14:14 +0200)]
Removed duplicated code

Change-Id: I182eb163cf3ac73931f3f7479ea5ae9548f56447
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoRemoved unused code
Ed Bartosh [Fri, 7 Dec 2012 15:04:16 +0000 (17:04 +0200)]
Removed unused code

Change-Id: I64c348345b8195ca4ccb5519ae31b2b48d17aaeb
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoConfigure coverage to cover only gbs modules
Ed Bartosh [Fri, 7 Dec 2012 14:37:31 +0000 (16:37 +0200)]
Configure coverage to cover only gbs modules

Previous attempt to configure coverage with setup.cfg was not working
properly. It can be seen in OTC Tools Tester Jenkins job as coverage
report includes gbp and even nose modules. This change is the second
attempt to fix the issue. Expected result is to see only gbs modules in
Jenkins coverage report.

Change-Id: I19c5d4624ce4338a5c6a3d7cb1815bbea5bd05b7
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoCode cleanup
Ed Bartosh [Fri, 7 Dec 2012 13:38:19 +0000 (15:38 +0200)]
Code cleanup

Fixed pylint findings, restructured code, removed unused APIs.

Change-Id: I1809430045a680c5e947e752d73c1287e97853af
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agocmd_export: fix a variable name clash
Markus Lehtonen [Mon, 10 Dec 2012 18:45:37 +0000 (20:45 +0200)]
cmd_export: fix a variable name clash

Which causes the wrong upstream branch name to be used.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agolog: set gbp verbose logging if --debug is specified
Markus Lehtonen [Wed, 21 Nov 2012 07:28:56 +0000 (09:28 +0200)]
log: set gbp verbose logging if --debug is specified

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agolog: prefix output with logger name if --debug is specified
Markus Lehtonen [Wed, 21 Nov 2012 07:28:56 +0000 (09:28 +0200)]
log: prefix output with logger name if --debug is specified

Helps to identify gbs and gbp log output when debugging.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoUpdate default build repsitory url
Zhang Qiang [Tue, 4 Dec 2012 13:53:58 +0000 (21:53 +0800)]
Update default build repsitory url

Change-Id: I44f6f2fb1982f65d8c1b2f542f0590004fc4ead6

11 years agoUse --tmp-dir of gbp in gbs import. #574
Huang Hao [Thu, 6 Dec 2012 09:33:30 +0000 (17:33 +0800)]
Use --tmp-dir of gbp in gbs import. #574

Cherry-pick from:bc8c03c3c2f608c7b8ab257db2c9197d30a51f85

Change-Id: Ia0f6e372d0c7667e81032cc874b3d5b4ff10fb94

11 years agoUse logging from gbp and delete the msger module
Ed Bartosh [Wed, 14 Nov 2012 16:32:34 +0000 (18:32 +0200)]
Use logging from gbp and delete the msger module

As gbs already depends on gbp it makes sense to use its logging facility
instead of msger, which is copy&pasted from another project. Gbp logging
is based on standard Python logging functionality. It basically only
adds color output to it. This change adds a minimal functionality to the
'gitbuildsys.log' module to act as a GBS-specific logger.

This change is also takes more than 400 lines of code from the project
and decreases amount of pylint errors on more than 30% (120->84)

Change-Id: I4bd4d2b9299bf7aa79d5ea9da182312d53e8c3ff
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoexport: update 'VCS:' tag in spec
Markus Lehtonen [Mon, 3 Dec 2012 10:44:43 +0000 (12:44 +0200)]
export: update 'VCS:' tag in spec

Updates/inserts a 'VCS:' tag to the spec file, after exporting the
sources. The format of the tag is 'repopath#tagname'.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agorewrite the waiting decorator and move it to a new module
Markus Lehtonen [Wed, 28 Nov 2012 13:12:01 +0000 (15:12 +0200)]
rewrite the waiting decorator and move it to a new module

In preparation for removing the msger module introduce a new module
'gitbuildsys.log' to contain all logging/output related functionality.

This change introduces and takes into use a rewritten 'waiting'
decorator in the new 'log' module.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>