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
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
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
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
Ed Bartosh [Fri, 20 Jul 2012 07:23:50 +0000 (10:23 +0300)]
ci: Fixed tests
Change-Id: I48950a36c34cdad17d56741db6d2ad7c5eef0d33
Ed Bartosh [Fri, 20 Jul 2012 07:20:24 +0000 (10:20 +0300)]
ci: run nosetests with coverage and xunit support
Change-Id: I53b2d9fc73dde20df821a0814304ef47eb9a4962
Ed Bartosh [Fri, 20 Jul 2012 07:19:07 +0000 (10:19 +0300)]
ci: Added Ubuntu packaging.
Change-Id: I56f5bbe4a9dea255590a8248b024ff275d11f063
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
Zhang Qiang [Tue, 10 Jul 2012 01:01:42 +0000 (09:01 +0800)]
bump to version gbs 0.8
Zhang Qiang [Fri, 20 Jul 2012 21:45:11 +0000 (05:45 +0800)]
fix gbs build twice issue
Zhang Qiang [Tue, 17 Jul 2012 04:28:13 +0000 (12:28 +0800)]
fix typo issue
Zhang Qiang [Mon, 16 Jul 2012 07:58:33 +0000 (15:58 +0800)]
add missing import errors module
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
Zhang Qiang [Fri, 13 Jul 2012 08:27:53 +0000 (16:27 +0800)]
set up resolv.conf for buildroot network
Zhang Qiang [Fri, 13 Jul 2012 05:35:49 +0000 (13:35 +0800)]
refine --buildlog error info and usage help 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.
JF Ding [Thu, 12 Jul 2012 10:55:43 +0000 (18:55 +0800)]
use decoded passwd string in conf even for empty str
Dawei Yang [Wed, 11 Jul 2012 08:33:21 +0000 (16:33 +0800)]
correct some wrong spelling words
Zhang Qiang [Wed, 11 Jul 2012 05:12:23 +0000 (13:12 +0800)]
Fix spelling error
Zhang Qiang [Wed, 11 Jul 2012 05:03:55 +0000 (13:03 +0800)]
Code cleanup: Fix Pylint issue
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
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.
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.
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>
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>
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>
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
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.
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.
Zhang Qiang [Fri, 6 Jul 2012 06:54:36 +0000 (14:54 +0800)]
gbs chroot support, implement #70
Zhang Qiang [Sat, 7 Jul 2012 06:01:54 +0000 (14:01 +0800)]
add --commit option for gbs build, remotebuild, and export, #83
Zhang Qiang [Fri, 6 Jul 2012 09:19:00 +0000 (17:19 +0800)]
Support custom location of configuration file, #92
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
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
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
Zhang Qiang [Wed, 4 Jul 2012 01:44:21 +0000 (09:44 +0800)]
use commit title of HEAD as commit message to OBS #112
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.
Zhang Qiang [Mon, 2 Jul 2012 06:24:31 +0000 (14:24 +0800)]
add --buildlog and --results support for gbs remotebuild
Zhang Qiang [Sat, 30 Jun 2012 12:40:58 +0000 (20:40 +0800)]
Update urlgrab as general url type
Zhang Qiang [Sat, 30 Jun 2012 12:39:43 +0000 (20:39 +0800)]
show the correct error info if no git repo found
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
Anas Nashif [Sun, 1 Jul 2012 01:41:46 +0000 (21:41 -0400)]
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
Anas Nashif [Sun, 1 Jul 2012 01:17:04 +0000 (21:17 -0400)]
Fixed messaging and option help and make it more clear.
Zhang Qiang [Fri, 29 Jun 2012 05:24:03 +0000 (13:24 +0800)]
use the same archive method with export/build to provide consistency
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.
Zhang Qiang [Thu, 28 Jun 2012 11:28:53 +0000 (19:28 +0800)]
Merge branch 'master' into devel
Zhang Qiang [Wed, 27 Jun 2012 09:07:31 +0000 (17:07 +0800)]
bump to version 0.7.1
Zhang Qiang [Thu, 28 Jun 2012 07:31:30 +0000 (15:31 +0800)]
catch TypeError and IOError if passwdx with wrong format
Zhang Qiang [Thu, 28 Jun 2012 07:05:45 +0000 (15:05 +0800)]
typo error using url
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.
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
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.
Zhang Qiang [Wed, 27 Jun 2012 08:27:50 +0000 (16:27 +0800)]
More error handling with gbs conf
Qiang Z Zhang [Wed, 27 Jun 2012 09:11:22 +0000 (02:11 -0700)]
Merge "Pylinting" into devel
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
Eduard Bartosh [Wed, 27 Jun 2012 09:07:57 +0000 (02:07 -0700)]
Merge "Set pycurl timeout as 30s" into devel
Ed Bartosh [Mon, 25 Jun 2012 17:29:19 +0000 (20:29 +0300)]
Pylinting
Change-Id: Icf8b108ab7a799391d9bf4eb65fe9d341c05e4de
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
hwangx [Wed, 27 Jun 2012 03:04:08 +0000 (11:04 +0800)]
passwd may contain "@"
Zhang Qiang [Wed, 27 Jun 2012 01:26:00 +0000 (09:26 +0800)]
Set pycurl timeout as 30s
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.
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
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
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
Ed Bartosh [Mon, 25 Jun 2012 14:38:28 +0000 (17:38 +0300)]
Implemented --message command line option for changelog mode
Change-Id: If5acf53362ef49806d71e74a11d52120213c609c
Ed Bartosh [Mon, 25 Jun 2012 13:40:57 +0000 (16:40 +0300)]
Used repo.path to use top-level git dir as a working dir. Fixes #21
Change-Id: I42f78a37f18050c478e9bc9ddc150107d4a9e2ee
Zhang Qiang [Mon, 11 Jun 2012 13:45:31 +0000 (21:45 +0800)]
bump to 0.7
Zhang Qiang [Wed, 20 Jun 2012 07:01:33 +0000 (15:01 +0800)]
Fix a logic error while setting buildarch
Zhang Qiang [Wed, 20 Jun 2012 02:54:28 +0000 (10:54 +0800)]
Update build conf
Zhang Qiang [Wed, 20 Jun 2012 00:55:51 +0000 (08:55 +0800)]
build arch: ia32 support and use system arch by default
Zhang Qiang [Wed, 20 Jun 2012 00:45:30 +0000 (08:45 +0800)]
hiden gbs submit in gbs 0.7
Zhang Qiang [Thu, 14 Jun 2012 08:36:11 +0000 (16:36 +0800)]
depend on git-buildpackage-rpm
Zhang Qiang [Wed, 13 Jun 2012 12:01:33 +0000 (20:01 +0800)]
pass specfile to gbp for archive tar ball
relative path for specfile is needed
Zhang Qiang [Tue, 12 Jun 2012 07:39:13 +0000 (15:39 +0800)]
Raise ConfigError if repourl is invalid in conf file
Zhang Qiang [Wed, 13 Jun 2012 10:02:01 +0000 (18:02 +0800)]
Use git.status to check the status of changelog file
Zhang Qiang [Tue, 12 Jun 2012 06:46:58 +0000 (14:46 +0800)]
gbs build repo conf: support local repo or plain rpm dir
Ed Bartosh [Mon, 11 Jun 2012 16:18:39 +0000 (19:18 +0300)]
Fixed pylint findings. One of them (using GbpError without rpm. prefix) is a bug.
Change-Id: Ia9b7f479320d527aecdbaca55dc1cd825dc762e9
Ed Bartosh [Mon, 11 Jun 2012 16:09:41 +0000 (19:09 +0300)]
Got rid of catching CommandExecFailed exception. Gbp git module now throws only GitRepositoryErrors.
Change-Id: I29a4c8fca910639d0ac68ad33e64162cfe3def3d
Ed Bartosh [Mon, 11 Jun 2012 10:47:00 +0000 (13:47 +0300)]
Sorted changelog entries in chronological order. fixes #55
Change-Id: I7ab1b7cc9564ad8ee09d94dc6d5bb6bcdd6ab87c
Zhang Qiang [Mon, 11 Jun 2012 08:56:13 +0000 (16:56 +0800)]
catch invalid apiurl exception in buildservice module
Zhang Qiang [Mon, 11 Jun 2012 05:51:52 +0000 (13:51 +0800)]
Update build conf to align with OBS project config changes
Zhang Qiang [Fri, 8 Jun 2012 22:48:56 +0000 (06:48 +0800)]
check existance of project dir before checking accesss mode
Zhang Qiang [Fri, 8 Jun 2012 05:13:14 +0000 (13:13 +0800)]
remove user/email config for gbs import
email/user info can be set from env GIT_AUTHOR_NAME/GIT_AUTHOR_EMAIL.
or opts, that's more general.
Zhang Qiang [Fri, 8 Jun 2012 04:45:03 +0000 (12:45 +0800)]
import conf in main script to initialize gbs conf file
Zhang Qiang [Fri, 8 Jun 2012 04:39:09 +0000 (12:39 +0800)]
allow decode empty passwd in conf to avoid exceptions
only check password if config file exist
JF Ding [Fri, 8 Jun 2012 03:41:37 +0000 (11:41 +0800)]
add default value for conf opt general:editor
to avoid noopt exception for new subcommands
Zhang Qiang [Thu, 7 Jun 2012 09:05:50 +0000 (17:05 +0800)]
gbs submit support
Guan Junchun [Thu, 7 Jun 2012 06:12:36 +0000 (14:12 +0800)]
cmd_build: import missing tempfile python library
Dawei Yang [Thu, 7 Jun 2012 02:32:45 +0000 (10:32 +0800)]
check the tmpdir permission before remotebuild
Zhang Qiang [Wed, 6 Jun 2012 06:03:19 +0000 (14:03 +0800)]
Update doc to add export/changelog/submit sections
* remove gbs import-orig section
Zhang Qiang [Wed, 6 Jun 2012 05:19:18 +0000 (13:19 +0800)]
use Tizen:Main instead Trunk as the default project
Zhang Qiang [Wed, 6 Jun 2012 06:52:17 +0000 (14:52 +0800)]
use abspath in wordir to avoid no basename for git project
Zhang Qiang [Tue, 5 Jun 2012 23:29:04 +0000 (07:29 +0800)]
remove su-wraper config in gbs config file, use sudo always
Zhang Qiang [Tue, 5 Jun 2012 07:04:50 +0000 (15:04 +0800)]
Add binfmt-support for arm build support
Zhang Qiang [Tue, 5 Jun 2012 07:04:03 +0000 (15:04 +0800)]
print the detail path of binaries RPM packages
Ed Bartosh [Tue, 5 Jun 2012 11:56:01 +0000 (14:56 +0300)]
Update changes file properly
Change-Id: I95cc22467bd73b391d1f94195e6237488c8368d3
Eduard Bartosh [Tue, 5 Jun 2012 10:05:25 +0000 (03:05 -0700)]
Merge "fix typo getuid usage"
Qiang Z Zhang [Tue, 5 Jun 2012 10:04:19 +0000 (03:04 -0700)]
Merge "Fixed crash when changelog doesn't exist"
Ed Bartosh [Tue, 5 Jun 2012 07:39:55 +0000 (10:39 +0300)]
Fixed crash when changelog doesn't exist
Change-Id: I8e1a0cf9c82b48b93fdf735af293c69d6084d5e3