tools/gbs.git
12 years agouse base64 to decode passwordx
Zhang Qiang [Mon, 13 Aug 2012 08:54:27 +0000 (16:54 +0800)]
use base64 to decode passwordx

if using string.decode, binascii.Error would be raised, so just use
base64i nstead just as what conf.py does.

12 years agoremove duplicated git project checking
Zhang Qiang [Mon, 13 Aug 2012 02:04:57 +0000 (10:04 +0800)]
remove duplicated git project checking

RpmGitRepository will check the git project structure, so we dont
need check once again.

12 years agoDisabled auto patch generation in export/remotebuild
Zhang Qiang [Mon, 13 Aug 2012 02:01:32 +0000 (10:01 +0800)]
Disabled auto patch generation in export/remotebuild

With --git-no-auto-patch-gen git-buildpackage would ignore all
upstream and vendor tags and create one tarball, without generating
patches.

12 years agoadd --use-system-qemu option for new version of build
Zhang Qiang [Sun, 12 Aug 2012 07:29:15 +0000 (15:29 +0800)]
add --use-system-qemu option for new version of build

12 years agouse tmpdir to store tempary gbs cache data
Zhang Qiang [Sun, 12 Aug 2012 11:15:33 +0000 (19:15 +0800)]
use tmpdir to store tempary gbs cache data

12 years agoMerge "Implemented submitting to OBS without creating local copy." into devel feature-pristine-tar
Qiang Z Zhang [Fri, 10 Aug 2012 09:19:16 +0000 (02:19 -0700)]
Merge "Implemented submitting to OBS without creating local copy." into devel

12 years agoMerge "cmd_submit: Adopted to changed gbp API get_upstream_branch" into devel
Qiang Z Zhang [Thu, 9 Aug 2012 22:59:18 +0000 (15:59 -0700)]
Merge "cmd_submit: Adopted to changed gbp API get_upstream_branch" into devel

12 years agocmd_submit: Adopted to changed gbp API get_upstream_branch
Ed Bartosh [Wed, 8 Aug 2012 15:01:30 +0000 (18:01 +0300)]
cmd_submit: Adopted to changed gbp API get_upstream_branch

gbp API get_upstream_branch and set_upstream_branch were changed
according to Markus suggestions (review #799). This change adopts
gbs to new gbp API.

Change-Id: I6051b46904791fb86dd3b9e4153d60821fba91e3

12 years agodont need check local branch name in changelog module
Zhang Qiang [Tue, 7 Aug 2012 07:44:42 +0000 (15:44 +0800)]
dont need check local branch name in changelog module

gbs changelog is just used to generate changelog, so it should
work on any branch.

12 years agounify the format of changelog entry
Zhang Qiang [Tue, 7 Aug 2012 07:38:35 +0000 (15:38 +0800)]
unify the format of changelog entry

12 years agoFixed Ubuntu builds in OTC Tools Tester - gbs.
Ed Bartosh [Wed, 8 Aug 2012 14:39:18 +0000 (17:39 +0300)]
Fixed Ubuntu builds in OTC Tools Tester - gbs.

For every gbs release gbs.spec and gbs.dsc should be updated.
Unfortunately gbs.dsc is still not used in gbs release process and
maintainer forgets to update it. This leads to the breakage of the
continuous integration tests (OTC Tools Tester - gbs job).

Change-Id: I667eeb3947c6adc5f2962fa4028905e0c415f7bb

12 years agomerge changes from release-0.8.1 branches
Zhang Qiang [Wed, 8 Aug 2012 04:41:13 +0000 (12:41 +0800)]
merge changes from release-0.8.1 branches

12 years agobump to version 0.8.1 2.0alpha release-0.8.1 0.8.1 2.0_alpha
Zhang Qiang [Tue, 31 Jul 2012 05:57:05 +0000 (13:57 +0800)]
bump to version 0.8.1

12 years agoremove tracking authors info to make changelog standard
Zhang Qiang [Mon, 6 Aug 2012 14:13:23 +0000 (22:13 +0800)]
remove tracking authors info to make changelog standard

12 years agouse universal time (GMT) instead of localtime to create tag
Zhang Qiang [Mon, 6 Aug 2012 13:57:06 +0000 (21:57 +0800)]
use universal time (GMT) instead of localtime to create tag

12 years agogbs submit support
Zhang Qiang [Mon, 6 Aug 2012 12:27:04 +0000 (20:27 +0800)]
gbs submit support

workflow:
1) Check opts: -m is a must option
2) if --target specified, use specified target branch name, use
   current branch name
3) create tag on target branch and commit ID, tag format is:
   submit/${branch}/${date}.${time}
4) push tag to gerrit.

12 years agocmd_build: Fixed check for empty user and password. Fixes #217.
Zhang Qiang [Mon, 6 Aug 2012 05:18:15 +0000 (13:18 +0800)]
cmd_build: Fixed check for empty user and password. Fixes #217.

12 years agoImplemented --out commandline option. Fixes #200.
Zhang Qiang [Fri, 3 Aug 2012 06:35:34 +0000 (14:35 +0800)]
Implemented --out commandline option. Fixes #200.

--out specifies existing directory for the RPMs. gbs copies
result RPMs to it when build is finished successfully.
As build is run with root privileges we can't move RPMs because of
possible access restrictions, so we're copying them.

12 years agoconf: error handling if no no section headers
Zhang Qiang [Fri, 3 Aug 2012 05:48:48 +0000 (13:48 +0800)]
conf: error handling if no no section headers

12 years agoImplemented submitting to OBS without creating local copy.
Ed Bartosh [Wed, 18 Jul 2012 07:07:20 +0000 (10:07 +0300)]
Implemented submitting to OBS without creating local copy.

This change implements major redesign of the way gbs works
with OBS. Currently it creates working copy, which requires
a lot of code to support it. This change proposes much more
simple way - without creating local copy. It drastically
simplifies the code (+324, -1470) and illiminates buildservice
and obspkg modules. Fixes #137 and #138

Change-Id: I2fe944246da89b2919b6148abe9713d69558f1e1

12 years agodon't update repo url if user and passwd are all none
Zhang Qiang [Thu, 2 Aug 2012 07:17:18 +0000 (15:17 +0800)]
don't update repo url if user and passwd are all none

12 years agoCreate two functions for common code in export build and remotebuild modules
Zhang Qiang [Tue, 31 Jul 2012 08:32:29 +0000 (16:32 +0800)]
Create two functions for common code in export build and remotebuild modules

12 years agouse abspath for export dir
Zhang Qiang [Tue, 31 Jul 2012 04:52:25 +0000 (12:52 +0800)]
use abspath for export dir

if running gbs outside of git dir or in sub-dir of git tree, gbs
can't export correctly.

12 years agofix indent error and refine repo url pattern
Zhang Qiang [Mon, 30 Jul 2012 08:48:02 +0000 (16:48 +0800)]
fix indent error and refine repo url pattern

12 years agomove check specfile to guess_spec function
Zhang Qiang [Mon, 30 Jul 2012 08:41:20 +0000 (16:41 +0800)]
move check specfile to guess_spec function

guess_spec is used by build, remotebuild and export module, so it's
better to check that in guess_spec function.

12 years agoadd new option --source-rpm to export source rpm, #89
Zhang Qiang [Fri, 27 Jul 2012 21:11:09 +0000 (05:11 +0800)]
add new option --source-rpm to export source rpm, #89

12 years agocmd_export: Used absolute path to spec file to avoid wrong
Ed Bartosh [Thu, 26 Jul 2012 08:56:39 +0000 (11:56 +0300)]
cmd_export: Used absolute path to spec file to avoid wrong
determination of spec path. Fixes #185

When spec file is passed as a parameter --spec and path is relative it
caused an error in path determination and gbs export was failing with
error: RPM error while parsing spec: can't parse specfile. This change
fixes the issue.

Change-Id: I1e388e88453423f6c529b0012d60d5251a64838c

12 years agoFixed call of Temp -> utils.Temp
Ed Bartosh [Thu, 26 Jul 2012 08:39:17 +0000 (11:39 +0300)]
Fixed call of Temp -> utils.Temp

Change-Id: Iacc7b1b760011f2197f5a7c7dbf9572dffa305c5

12 years agocmd_build: Improved using of repositories. Fixes #33
Ed Bartosh [Tue, 24 Jul 2012 10:31:34 +0000 (13:31 +0300)]
cmd_build: Improved using of repositories. Fixes #33

Used both types of repos - mentioned in config file and specified in
commandline. Previously only one type is used.

Implemented --skip-conf-repos command line option to allow skipping
repos, mentioned in config file.

Change-Id: If55fdff2a4f74fde0ed0b14b441ac87e348ff3ff

12 years agoUsed --repo build options instead of GBS_BUILD_REPOAUTH hack
Ed Bartosh [Tue, 17 Jul 2012 08:17:56 +0000 (11:17 +0300)]
Used --repo build options instead of GBS_BUILD_REPOAUTH hack

This change uses repox.* config options from 'build' section to
prepare proper repository urls, including auth info.

Note that auth info is also allowed in repo urls,
so repo1.url = 'https://user:password@host.com/' is valid and
repo1.user/repo1.password are not required in this case.

Change-Id: I464f86f4fffd05a60a134af7a838255263a23fae

12 years agoMerge "Added 'clean' target to packaging/Makefile" into devel
Qiang Z Zhang [Fri, 27 Jul 2012 08:28:00 +0000 (01:28 -0700)]
Merge "Added 'clean' target to packaging/Makefile" into devel

12 years agoMerge "cmd_build: Disabled auto patch generation. Fixes #DEVT-9" into devel
Qiang Z Zhang [Fri, 27 Jul 2012 08:14:39 +0000 (01:14 -0700)]
Merge "cmd_build: Disabled auto patch generation. Fixes #DEVT-9" into devel

12 years agoAdded 'clean' target to packaging/Makefile
Ed Bartosh [Wed, 25 Jul 2012 13:33:25 +0000 (16:33 +0300)]
Added 'clean' target to packaging/Makefile

Without this change Jenkins job accumulates useless tarballs
from previous gbs versions and uploads them to OBS.

Change-Id: I1f5deea5ccd4e77753fd256b1dd2ec77c6ae73aa

12 years agoFixed spelling. Capitalized help output. Fixes #189.
Ed Bartosh [Wed, 25 Jul 2012 13:23:34 +0000 (16:23 +0300)]
Fixed spelling. Capitalized help output. Fixes #189.

Change-Id: If6e8aed2131166aa80dc929a2db46b25923623fe

12 years agocmd_build: Disabled auto patch generation. Fixes #DEVT-9
Ed Bartosh [Thu, 19 Jul 2012 08:16:18 +0000 (11:16 +0300)]
cmd_build: Disabled auto patch generation. Fixes #DEVT-9

By default git-buildpackage tries to find a way to generate proper
packaging info from git. For example if it founds branch with the name
'upsream' it's looking for the upstream/version tag, where version is
a version of the upstream sources. If it doesn't found the tag it
fails to export. This behaviour caused confusiong among Tizen
developers, as they don't use proper git layout, but some projects use
upstream branches. This patch should fix this kind of issues. With
--git-no-auto-patch-gen git-buildpackage should ignore all upstream
and vendor tags and create one tarball, without generating patches.
This change also includes pointing to the same commit as an upstream
tree. Otherwise git-buildpackage will be looking at upstream/version
tag if upstream branch exists.

Change-Id: Iba62396fef0f82b46589f8094137c41c7d94895b

12 years agoImplemented cleaning of temporary files and directories.
Ed Bartosh [Wed, 25 Jul 2012 09:34:50 +0000 (12:34 +0300)]
Implemented cleaning of temporary files and directories.

Implemented in utils.Temp class, which creates temporary file or
directory using tempfile.md[ds]temp and destroys it when object is
deleted(garbage collected when it's out of the scope or upon program
exit).  Fixes #184 and #175.

To avoid abnormal gbs exit(and not deleting temporaries) Exception is
catched in gbs main module.

Change-Id: I04d7067fc293e8b712f183a3d8260dc946058fa7

12 years agoUpdated debian/changelog to 0.8 from Tools:gbs. Updated .dsc.
Ed Bartosh [Wed, 25 Jul 2012 11:13:13 +0000 (14:13 +0300)]
Updated debian/changelog to 0.8 from Tools:gbs. Updated .dsc.

Change-Id: I441543ec5966f8d02d7af6f6e9f14b448b03816e

12 years agoMake dependencies to osc and build strict. Make dependency to
Ed Bartosh [Fri, 20 Jul 2012 11:29:37 +0000 (14:29 +0300)]
Make dependencies to osc and build strict. Make dependency to
git-buildpackage-rpm versioning.

As gbs depends on locally modified versions of osc and build packages
it makes sence to strictly depend on them to prevent installation of
the bigger version of the package from distro repos.

In case of git-buildpackage-rpm it's hardly possible for any distro to
include bigger version as we're using upstream package and developing
on top of it, so versioning dependency is enough.

Change-Id: I757708a35362f8a68f81fad472ac540c3286fa92

12 years agoci: Fixed package build for both Ubuntu and OpenSUSE
Ed Bartosh [Fri, 20 Jul 2012 07:26:10 +0000 (10:26 +0300)]
ci: Fixed package build for both Ubuntu and OpenSUSE

Change-Id: Ia06c4401de7da6da0d5d57f722e478040de74004

12 years agoci: Fixed tests
Ed Bartosh [Fri, 20 Jul 2012 07:23:50 +0000 (10:23 +0300)]
ci: Fixed tests

Change-Id: I48950a36c34cdad17d56741db6d2ad7c5eef0d33

12 years agoci: run nosetests with coverage and xunit support
Ed Bartosh [Fri, 20 Jul 2012 07:20:24 +0000 (10:20 +0300)]
ci: run nosetests with coverage and xunit support

Change-Id: I53b2d9fc73dde20df821a0814304ef47eb9a4962

12 years agoci: Added Ubuntu packaging.
Ed Bartosh [Fri, 20 Jul 2012 07:19:07 +0000 (10:19 +0300)]
ci: Added Ubuntu packaging.

Change-Id: I56f5bbe4a9dea255590a8248b024ff275d11f063

12 years agoUsed username to construct a path to gbs cache.
Ed Bartosh [Tue, 24 Jul 2012 13:39:42 +0000 (16:39 +0300)]
Used username to construct a path to gbs cache.

Without this change /var/tmp/gbscashe is owned by the user,
who created it. This causes 'permission denied' traceback when trying
to update repository metadata by another user running gbs build.

Fixes #190 and #197.

Change-Id: Ib3df0b215202553b5be1fb5e328cac334a5519b1

12 years agobump to version gbs 0.8 release-0.8 0.8
Zhang Qiang [Tue, 10 Jul 2012 01:01:42 +0000 (09:01 +0800)]
bump to version gbs 0.8

12 years agofix gbs build twice issue
Zhang Qiang [Fri, 20 Jul 2012 21:45:11 +0000 (05:45 +0800)]
fix gbs build twice issue

12 years agofix typo issue
Zhang Qiang [Tue, 17 Jul 2012 04:28:13 +0000 (12:28 +0800)]
fix typo issue

12 years agoadd missing import errors module
Zhang Qiang [Mon, 16 Jul 2012 07:58:33 +0000 (15:58 +0800)]
add missing import errors module

12 years agouse --include-all to replace --include-uncommited
Zhang Qiang [Mon, 16 Jul 2012 02:12:56 +0000 (10:12 +0800)]
use --include-all to replace --include-uncommited

--include-all is more reasonable and easy used by developer than
--include-uncommited

12 years agoset up resolv.conf for buildroot network
Zhang Qiang [Fri, 13 Jul 2012 08:27:53 +0000 (16:27 +0800)]
set up resolv.conf for buildroot network

12 years agorefine --buildlog error info and usage help info
Zhang Qiang [Fri, 13 Jul 2012 05:35:49 +0000 (13:35 +0800)]
refine --buildlog error info and usage help info

12 years agodrop --include-untracked and print more friendly info
Zhang Qiang [Fri, 13 Jul 2012 05:29:33 +0000 (13:29 +0800)]
drop --include-untracked and print more friendly info

--commit can't be specified together with --include-uncommited.
give warning if no --include-uncommited specified and current git
tree is not clean, and print changed and untracked files.

12 years agouse decoded passwd string in conf even for empty str
JF Ding [Thu, 12 Jul 2012 10:55:43 +0000 (18:55 +0800)]
use decoded passwd string in conf even for empty str

12 years agocorrect some wrong spelling words
Dawei Yang [Wed, 11 Jul 2012 08:33:21 +0000 (16:33 +0800)]
correct some wrong spelling words

12 years agoFix spelling error
Zhang Qiang [Wed, 11 Jul 2012 05:12:23 +0000 (13:12 +0800)]
Fix spelling error

12 years agoCode cleanup: Fix Pylint issue
Zhang Qiang [Wed, 11 Jul 2012 05:03:55 +0000 (13:03 +0800)]
Code cleanup: Fix Pylint issue

12 years ago--include-uncommited and --include-untracked support
Zhang Qiang [Wed, 11 Jul 2012 02:04:45 +0000 (10:04 +0800)]
--include-uncommited and --include-untracked support

Add these two options to build/remotebuild/export:
* --include-uncommited: only use files that are already tracked,
    including changes have not been commited
* --include-untracked: use untracked files, including changes have
    not been commited, and untracked files

12 years agoAllow empty user in gbs conf
Zhang Qiang [Tue, 10 Jul 2012 23:23:25 +0000 (07:23 +0800)]
Allow empty user in gbs conf

empty user is allowed while initialize gbs.conf,and give warn in
remotebuild sub-command if user is empty.

12 years agoremove branch checking, which would be checked in gbp
Zhang Qiang [Tue, 10 Jul 2012 22:34:55 +0000 (06:34 +0800)]
remove branch checking, which would be checked in gbp

This allow building when not on any branch. e.g. when just checked
out a tag a want to build that.

12 years agocmd_export: parse correct spec file
Markus Lehtonen [Tue, 10 Jul 2012 13:15:18 +0000 (16:15 +0300)]
cmd_export: parse correct spec file

Do not parse the working copy of the spec file but the one that was
exported.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agocmd_remotebuild: don't check version
Markus Lehtonen [Tue, 10 Jul 2012 12:44:45 +0000 (15:44 +0300)]
cmd_remotebuild: don't check version

Don't check version from .spec as we don't use it (and it would be
wrong, anyway, if building other than local copy).

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agocmd_build: use correct spec file
Markus Lehtonen [Thu, 28 Jun 2012 12:50:08 +0000 (15:50 +0300)]
cmd_build: use correct spec file

Do not parse the working copy of the spec file but the one destined for
building.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoask user to input remote build server first while creating conf
Zhang Qiang [Mon, 9 Jul 2012 06:56:43 +0000 (14:56 +0800)]
ask user to input remote build server first while creating conf

remote build server should be asked input first, then user/pass.
Do not need show user to use default values. fix # 113

12 years agoDon't need check the existance of orig_file
Zhang Qiang [Mon, 9 Jul 2012 06:33:30 +0000 (14:33 +0800)]
Don't need check the existance of orig_file

use gbp_build to generate tar ball and export packaging files
directly, so we dont need care about the existance of orig_file (SOURCE)

without this patch, gbs build would fails if no SOURCE tag in specfile.

12 years agoadd --extra-packs option for gbs build, implement # 119
Zhang Qiang [Fri, 6 Jul 2012 08:54:58 +0000 (16:54 +0800)]
add --extra-packs option for gbs build, implement # 119

This option can be used to install more extra packages in build root.
for example, developer can add option `--extra-packs=zypper,vim` to
install extra zypper and vim to final build root.

12 years agogbs chroot support, implement #70
Zhang Qiang [Fri, 6 Jul 2012 06:54:36 +0000 (14:54 +0800)]
gbs chroot support, implement #70

12 years agoadd --commit option for gbs build, remotebuild, and export, #83
Zhang Qiang [Sat, 7 Jul 2012 06:01:54 +0000 (14:01 +0800)]
add --commit option for gbs build, remotebuild, and export, #83

12 years agoSupport custom location of configuration file, #92
Zhang Qiang [Fri, 6 Jul 2012 09:19:00 +0000 (17:19 +0800)]
Support custom location of configuration file, #92

12 years agoUse the correct way to generate tarball make build/export consistent
Zhang Qiang [Thu, 5 Jul 2012 05:38:25 +0000 (13:38 +0800)]
Use the correct way to generate tarball make build/export consistent

call gbp.buildpackage_rpm directly to make code consistent. fix #94

12 years agorevert: bc4fa71d9d5935f8c44505ee538f7135cfefa44c
Zhang Qiang [Thu, 5 Jul 2012 01:40:36 +0000 (09:40 +0800)]
revert: bc4fa71d9d5935f8c44505ee538f7135cfefa44c

use buildpackage_rpm module in gbp to make build source code consisted

12 years agoCheck branch to fix backtrace issue if no branch
Zhang Qiang [Mon, 2 Jul 2012 02:29:00 +0000 (10:29 +0800)]
Check branch to fix backtrace issue if no branch

use git-buildpackage error directly, fix #85 and #110

12 years agouse commit title of HEAD as commit message to OBS #112
Zhang Qiang [Wed, 4 Jul 2012 01:44:21 +0000 (09:44 +0800)]
use commit title of HEAD as commit message to OBS #112

12 years agoCheck the valid of generated repos before using it
Zhang Qiang [Wed, 4 Jul 2012 01:38:55 +0000 (09:38 +0800)]
Check the valid of generated repos before using it

without this patch repos passed to build would contains some invalid
repos, which result in build fails.

12 years agoadd --buildlog and --results support for gbs remotebuild
Zhang Qiang [Mon, 2 Jul 2012 06:24:31 +0000 (14:24 +0800)]
add --buildlog and --results support for gbs remotebuild

12 years agoUpdate urlgrab as general url type
Zhang Qiang [Sat, 30 Jun 2012 12:40:58 +0000 (20:40 +0800)]
Update urlgrab as general url type

12 years agoshow the correct error info if no git repo found
Zhang Qiang [Sat, 30 Jun 2012 12:39:43 +0000 (20:39 +0800)]
show the correct error info if no git repo found

12 years agosubmit packaging files to OBS
Zhang Qiang [Mon, 2 Jul 2012 01:45:17 +0000 (09:45 +0800)]
submit packaging files to OBS

This fix a bug introduced by bc4fa71d9d5935f8c44505ee538f7135cfefa44c

12 years agoFixed messaging and option help and make it more clear.
Anas Nashif [Sun, 1 Jul 2012 01:41:46 +0000 (21:41 -0400)]
Fixed messaging and option help and make it more clear.

12 years agoRevert "Fixed messaging and option help and make it more clear."
Anas Nashif [Sat, 30 Jun 2012 17:34:36 +0000 (10:34 -0700)]
Revert "Fixed messaging and option help and make it more clear."

This reverts commit 7adfa9f83b52c0a41b553f808b2bc5df4ddf4f5c

12 years agoFixed messaging and option help and make it more clear.
Anas Nashif [Sun, 1 Jul 2012 01:17:04 +0000 (21:17 -0400)]
Fixed messaging and option help and make it more clear.

12 years agouse the same archive method with export/build to provide consistency
Zhang Qiang [Fri, 29 Jun 2012 05:24:03 +0000 (13:24 +0800)]
use the same archive method with export/build to provide consistency

12 years agoUsing $tmpdir/$user/gbs-buildroot.arch as default buildroot
Zhang Qiang [Fri, 29 Jun 2012 04:48:52 +0000 (12:48 +0800)]
Using $tmpdir/$user/gbs-buildroot.arch as default buildroot

With this patch different user can use gbs build at the same time,
also different arch would be built to different buildroot.

12 years agoMerge branch 'master' into devel
Zhang Qiang [Thu, 28 Jun 2012 11:28:53 +0000 (19:28 +0800)]
Merge branch 'master' into devel

12 years agobump to version 0.7.1 release-0.7.1 0.7.1
Zhang Qiang [Wed, 27 Jun 2012 09:07:31 +0000 (17:07 +0800)]
bump to version 0.7.1

12 years agocatch TypeError and IOError if passwdx with wrong format
Zhang Qiang [Thu, 28 Jun 2012 07:31:30 +0000 (15:31 +0800)]
catch TypeError and IOError if passwdx with wrong format

12 years agotypo error using url
Zhang Qiang [Thu, 28 Jun 2012 07:05:45 +0000 (15:05 +0800)]
typo error using url

12 years agousing the packaging directory for obs build files, #60
Zhang Qiang [Thu, 28 Jun 2012 05:49:33 +0000 (13:49 +0800)]
using the packaging directory for obs build files, #60

with this patch, developers can chdir to packaging/ to check the
remote build data, also osc can be used here.

12 years agofix gbs build -R option bug
hwangx [Wed, 27 Jun 2012 10:09:54 +0000 (18:09 +0800)]
fix gbs build -R option bug

the repo value may occur conflicts , such as git_archive(repo...)
so renmae repo to repourl

12 years agoonly check repos and build conf if no --noinit specified
Zhang Qiang [Wed, 27 Jun 2012 08:36:07 +0000 (16:36 +0800)]
only check repos and build conf if no --noinit specified

This feature is needed to compatible with previous gbs version.
With --noinit option specified, gbs dont' need prepare build root,
which should be already there. That means gbs don't need spend time
to parse repos and download build conf, and just go into build root
execute rpmbuild.

12 years agoMore error handling with gbs conf
Zhang Qiang [Wed, 27 Jun 2012 08:27:50 +0000 (16:27 +0800)]
More error handling with gbs conf

12 years agoMerge "Pylinting" into devel
Qiang Z Zhang [Wed, 27 Jun 2012 09:11:22 +0000 (02:11 -0700)]
Merge "Pylinting" into devel

12 years agoMerge "Catched GitRepositoryError to avoid crashes 'Currently not on a branch' and...
Qiang Z Zhang [Wed, 27 Jun 2012 09:10:54 +0000 (02:10 -0700)]
Merge "Catched GitRepositoryError to avoid crashes 'Currently not on a branch' and similar. Fixes #85" into devel

12 years agoMerge "Set pycurl timeout as 30s" into devel
Eduard Bartosh [Wed, 27 Jun 2012 09:07:57 +0000 (02:07 -0700)]
Merge "Set pycurl timeout as 30s" into devel

12 years agoPylinting
Ed Bartosh [Mon, 25 Jun 2012 17:29:19 +0000 (20:29 +0300)]
Pylinting

Change-Id: Icf8b108ab7a799391d9bf4eb65fe9d341c05e4de

12 years agoCatched GitRepositoryError to avoid crashes 'Currently not on a
Ed Bartosh [Tue, 26 Jun 2012 07:34:39 +0000 (10:34 +0300)]
Catched GitRepositoryError to avoid crashes 'Currently not on a
branch' and similar. Fixes #85

Change-Id: Icc125010b0bf2c2a89392f97502171f4d4dff125

12 years agopasswd may contain "@"
hwangx [Wed, 27 Jun 2012 03:04:08 +0000 (11:04 +0800)]
passwd may contain "@"

12 years agoSet pycurl timeout as 30s
Zhang Qiang [Wed, 27 Jun 2012 01:26:00 +0000 (09:26 +0800)]
Set pycurl timeout as 30s

12 years agoparse repos and fetch correct build conf from repos
Zhang Qiang [Tue, 26 Jun 2012 13:41:55 +0000 (21:41 +0800)]
parse repos and fetch correct build conf from repos

If no --dist specified, gbs would try to get build config from
repos. Currently, the position of build config is  located  at
builddata directory, and build.xml is the index file of build config
file.

If no build config file found from repos, build config from ~/.gbs.conf
would be used.

With this patch, a new format of repo is acceptable, which contains
'builddata/build.xml', which contains repos and archs info, also build
conf can be avaliable from this file.

12 years agoMade one changelog entry in changelog mode. Fixes #90.
Ed Bartosh [Mon, 25 Jun 2012 15:59:38 +0000 (18:59 +0300)]
Made one changelog entry in changelog mode. Fixes #90.

Previously commits were groupped by date and gbs changelog generated
one changelog entry for one group of commits. This was not convenient
for maintainers as they tend to make one changelog entry per set of
commits made sinse last changelog entry.
This change introduces new behaviour of git changelog - it will
generate only one changelog entry.

Change-Id: I328be454fb1f64d58ef6f1143ff8539624d66893

12 years agoImplemented --commit command line option for remotebuild mode. Fixes #83
Ed Bartosh [Mon, 25 Jun 2012 15:16:24 +0000 (18:16 +0300)]
Implemented --commit command line option for remotebuild mode. Fixes #83

--commit option allows user to specify commit id to build

Change-Id: Iaeebf290b9acb6ac65578c443c5c1a0d9a6351da

12 years agoFixed bug in getting nearest tag for the commit in changelog mode.
Ed Bartosh [Mon, 25 Jun 2012 14:46:46 +0000 (17:46 +0300)]
Fixed bug in getting nearest tag for the commit in changelog mode.

Previously HEAD is used to find this tag, which is not correct.

Change-Id: Ifc9ad7377be2ec5fdc33253b7977889398f7fa93