tools/gbs.git
12 years agoMerge "Fix replacing of keys in config manager" into devel
Qiang Z Zhang [Mon, 27 Aug 2012 06:30:34 +0000 (23:30 -0700)]
Merge "Fix replacing of keys in config manager" into devel

12 years agoMerge "Fix some small problems in RepoParser" into devel
Qiang Z Zhang [Mon, 27 Aug 2012 06:11:05 +0000 (23:11 -0700)]
Merge "Fix some small problems in RepoParser" into devel

12 years agoGet rid of local copy of cmdln.py
Ed Bartosh [Wed, 1 Aug 2012 11:55:15 +0000 (14:55 +0300)]
Get rid of local copy of cmdln.py

In the current code thereis a copy of cmdln.py module, which is also
present in osc. gbs depends on osc, so it's better to just use cmldn
from there to avoid unneeded code duplication.

Change-Id: Ib3301ad1635ac681e7b7213aafa17bed0ac22c0a

12 years agoFix replacing of keys in config manager
Markus Lehtonen [Wed, 22 Aug 2012 10:07:34 +0000 (13:07 +0300)]
Fix replacing of keys in config manager

Otherwise cmd_build will crash if 'passwd' are being replaced with
'passwdx'.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoFix some small problems in RepoParser
Huang Hao [Fri, 24 Aug 2012 05:31:41 +0000 (13:31 +0800)]
Fix some small problems in RepoParser

RepoParser.parse() is a bit of hard for understanding. try to make
it more cleaner and readable.

 - remove useless self.archs
 - split local path out first, otherwise urlgrab will complain
    "<url> malformed" for local path
 - get_repos_by_arch() should return local+standard repos at least
 - check self.buildconf each time before getting repo's build.conf
 - self.repos is used only in one place in self.parse(), it can
    be a local var and passed by argument
 - build meta of one repo should not be used for another repo, so
    self.buildmeta can also be a local var in for loop
 - add a function is_standard_repo() to check repomd.xml file
 - add a function fetch() to fetch a remote file into self.cachedir

Change-Id: I1d5d8f9347a5426a323aa04e7edf8c5e75c1c65a

12 years agoMerge "Use pycurl Keep-Alive feature to save download time." into devel
Qiang Z Zhang [Thu, 23 Aug 2012 11:17:43 +0000 (04:17 -0700)]
Merge "Use pycurl Keep-Alive feature to save download time." into devel

12 years agoUse pycurl Keep-Alive feature to save download time.
Huang Hao [Mon, 20 Aug 2012 11:45:38 +0000 (19:45 +0800)]
Use pycurl Keep-Alive feature to save download time.

When GBS parse "latest" type of repo url, it tries to download
several URLs. This usually costs about 30 seconds to complete. By
using keepalive it takes about 10 seconds. pycurl print "Re-using
existing connection!" if pycurl.VERBOSE set to 1.

Change-Id: Ib78b204c26d9077c15e0ea7ff7b032ad2314546f

12 years agoMerge "Raise OSCError in oscapi.py::OSC::core_http instead of ObsError." into devel
Qiang Z Zhang [Thu, 23 Aug 2012 08:26:37 +0000 (01:26 -0700)]
Merge "Raise OSCError in oscapi.py::OSC::core_http instead of ObsError." into devel

12 years agoImplemented testcases for gbs changelog.
Ed Bartosh [Wed, 22 Aug 2012 14:58:47 +0000 (17:58 +0300)]
Implemented testcases for gbs changelog.

Change-Id: Ie2909f33a443e888ce29be5f2dfde0847b291fe2

12 years agoRenamed tests.
Ed Bartosh [Wed, 22 Aug 2012 14:51:38 +0000 (17:51 +0300)]
Renamed tests.

Removed useless numbers from the test names.

Change-Id: If9e85446958f02a4669b647c0a94902a012144cd

12 years agocmd_changelog: Removed not working check.
Ed Bartosh [Wed, 22 Aug 2012 14:12:00 +0000 (17:12 +0300)]
cmd_changelog: Removed not working check.

repo.is_clean returns tuple, so if not repo.is_clean() always False,
which makes this check useless. I prefer to remove it instead of
fixing because if I fix it it will start complaining each time git
repo has untracked files and users may not like it.

Change-Id: I5dc6a53e01d5f80aef6ab4bc5731170c9d924834

12 years agoRaise OSCError in oscapi.py::OSC::core_http instead of ObsError.
Huang Hao [Tue, 21 Aug 2012 13:11:39 +0000 (21:11 +0800)]
Raise OSCError in oscapi.py::OSC::core_http instead of ObsError.

Error message print out to console is incomplete since ObsError
can't be catched by methods in oscapi.py and throw directly to
cmd_remotebuild.py.

Change-Id: I2879ef2ab7f60f3f0caa35b081c9408ac6589527

12 years agoget specified commit info
Guan Junchun [Tue, 21 Aug 2012 09:18:51 +0000 (17:18 +0800)]
get specified commit info

1. gbs rb -c HEAD~1 should get 'HEAD~1' commit info
2. gbs rb [--include-all] get 'HEAD' commit info

12 years agoMerge "fix undefined issue introduced by merging code" into devel
Zhang Qiang [Thu, 23 Aug 2012 02:33:35 +0000 (19:33 -0700)]
Merge "fix undefined issue introduced by merging code" into devel

12 years agoFixed Ubuntu builds.
Ed Bartosh [Tue, 21 Aug 2012 11:15:11 +0000 (14:15 +0300)]
Fixed Ubuntu builds.

One more try to fix OTC Tester build.
Please, don't merge this change until there will be 'Build Successful'
message from OTC Tester for this change.

PS: We need to do something with our release process. It's already
second release, which breaks tester builds and fixing is not easy.

Change-Id: Idc4f3a1f3760b28139a7f590e495efd1ee5c26c7

12 years agofix undefined issue introduced by merging code
Zhang Qiang [Tue, 21 Aug 2012 08:42:10 +0000 (16:42 +0800)]
fix undefined issue introduced by merging code

12 years agoFixed Ubuntu builds in OTC Tools Tester - gbs.
Ed Bartosh [Tue, 21 Aug 2012 08:19:09 +0000 (11:19 +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: Ifccd785d0bbe2797ddd593c760b590c74e0623f8

12 years agofix merge conflict issue from release-0.9 branch to devel
Zhang Qiang [Mon, 20 Aug 2012 14:06:47 +0000 (22:06 +0800)]
fix merge conflict issue from release-0.9 branch to devel

12 years agobump to version 0.9 release-0.9 0.9
Zhang Qiang [Tue, 14 Aug 2012 22:48:59 +0000 (06:48 +0800)]
bump to version 0.9

12 years agoalways raise errors.ObsError in oscapi module instead of OSCError
Zhang Qiang [Mon, 20 Aug 2012 08:30:55 +0000 (16:30 +0800)]
always raise errors.ObsError in oscapi module instead of OSCError

OSCError can't be catched and backtrace would be printed.

12 years agoconvert config data as string while putting to OBS
Zhang Qiang [Mon, 20 Aug 2012 07:28:41 +0000 (15:28 +0800)]
convert config data as string while putting to OBS

This will cause exception/backtrace with some system. fix #240

12 years agoMerge changes I4d66326a,I0d8c7379 into devel
Qiang Z Zhang [Sun, 19 Aug 2012 01:13:48 +0000 (18:13 -0700)]
Merge changes I4d66326a,I0d8c7379 into devel

* changes:
  Fixed tests for gbs help.
  Implemented testcases for gbs import.

12 years agoFix incorrect gbp command line options in export and remotebuild
Zhang Qiang [Sat, 18 Aug 2012 23:59:40 +0000 (07:59 +0800)]
Fix incorrect gbp command line options in export and remotebuild

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoPylining
Ed Bartosh [Tue, 14 Aug 2012 10:09:40 +0000 (13:09 +0300)]
Pylining

Change-Id: Ia3d0b4f28f6863207d4de398131bde712093f8fa

12 years agounify the help info to use lower char
Zhang Qiang [Fri, 17 Aug 2012 02:29:30 +0000 (10:29 +0800)]
unify the help info to use lower char

12 years agoremove --debuginfo and --incremental
Huang Hao [Thu, 16 Aug 2012 09:37:03 +0000 (17:37 +0800)]
remove --debuginfo and --incremental

--debuginfo useless not so remove it, we will have new design version
of incremental build

12 years agoMerge "support multiple repos from gbs.conf and command line opts" into release-0.9
Zhang Qiang [Thu, 16 Aug 2012 10:31:14 +0000 (03:31 -0700)]
Merge "support multiple repos from gbs.conf and command line opts" into release-0.9

12 years agoFixed tests for gbs help.
Ed Bartosh [Wed, 15 Aug 2012 15:23:52 +0000 (18:23 +0300)]
Fixed tests for gbs help.

Tests were running gbs help with os.system, which means that in order
to pass tests gbs have to be installed. This doesn't make much sense
for developer-level tests. They should be able to run from source tree
without any preparations.

Change-Id: I4d66326ad26564f2e253d2141284b475a0d4995e

12 years agoImplemented testcases for gbs import.
Ed Bartosh [Thu, 9 Aug 2012 15:40:22 +0000 (18:40 +0300)]
Implemented testcases for gbs import.

This is a first real set of testcases for the gbs module. Testcases were
taken from gbs-auto-test project (Thanks, guys!) and integrated into
existing continuous integration infrastructure. Some new testcase have
been added to increase test coverage.

Change-Id: I0d8c7379d1d87919d1b9f2863480e1a6451793f7

12 years agoUsed absolute imports.
Ed Bartosh [Fri, 3 Aug 2012 14:39:05 +0000 (17:39 +0300)]
Used absolute imports.

PEP0008 discourages relative imports in quite strict manner:
Relative imports for intra-package imports are highly
discouraged. Always use the absolute package path for all imports.
So, let's not have them.

Change-Id: I7622060910bf0f62ebc55c2777b3b14159e8a7e7

12 years agoraise error if base obs project is not exists
Zhang Qiang [Wed, 15 Aug 2012 05:16:21 +0000 (13:16 +0800)]
raise error if base obs project is not exists

12 years agosupport multiple repos from gbs.conf and command line opts
Zhang Qiang [Wed, 15 Aug 2012 02:46:04 +0000 (10:46 +0800)]
support multiple repos from gbs.conf and command line opts

RepoParser class should parse all repos and generate standard repos
and composite repos.

12 years agoUse hostport instead of hostname.
Huang Hao [Wed, 15 Aug 2012 02:28:10 +0000 (10:28 +0800)]
Use hostport instead of hostname.

Include port in urls returns by get_repos_conf(). Fix issue#234

12 years agochange failed to get build conf msg as warning
Zhang Qiang [Tue, 14 Aug 2012 22:31:04 +0000 (06:31 +0800)]
change failed to get build conf msg as warning

12 years agoMerge branch 'release-0.9' into devel
Zhang Qiang [Tue, 14 Aug 2012 12:56:45 +0000 (20:56 +0800)]
Merge branch 'release-0.9' into devel

12 years agohotfix: add clean_repos_userinfo to hide repos useinfo
Zhang Qiang [Tue, 14 Aug 2012 12:50:17 +0000 (20:50 +0800)]
hotfix: add clean_repos_userinfo to hide repos useinfo

12 years agopackaging: require latest git-buildpackage
Markus Lehtonen [Fri, 10 Aug 2012 13:45:13 +0000 (16:45 +0300)]
packaging: require latest git-buildpackage

Requires the latest gbp in order to function correctly.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agobuild and export: conform to new API of git-buildpackage
Markus Lehtonen [Thu, 12 Jul 2012 12:48:15 +0000 (15:48 +0300)]
build and export: conform to new API of git-buildpackage

Command line option names and the SpecFile class have changed a bit.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoMerge "cmd_import: conform to new API of git-buildpackage" into devel
Eduard Bartosh [Tue, 14 Aug 2012 11:48:51 +0000 (04:48 -0700)]
Merge "cmd_import: conform to new API of git-buildpackage" into devel

12 years agoMerge "cmd_changelog: conform to new API of git-buildpackage" into devel
Eduard Bartosh [Tue, 14 Aug 2012 11:47:55 +0000 (04:47 -0700)]
Merge "cmd_changelog: conform to new API of git-buildpackage" into devel

12 years agoMerge "Removed generation of __version__.py" into devel
Qiang Z Zhang [Tue, 14 Aug 2012 08:54:42 +0000 (01:54 -0700)]
Merge "Removed generation of __version__.py" into devel

12 years agocopy build conf to $tmpdir/ for --noinit use
Zhang Qiang [Tue, 14 Aug 2012 07:41:11 +0000 (15:41 +0800)]
copy build conf to $tmpdir/ for --noinit use

12 years agorefinement about temp file/dir management
Zhang Qiang [Tue, 14 Aug 2012 06:20:19 +0000 (14:20 +0800)]
refinement about temp file/dir management

1. create temp file/dir in $tmpdir setting in gbs.conf
2. catch OSError in Temp class

12 years agoRemoved generation of __version__.py
Ed Bartosh [Fri, 10 Aug 2012 08:04:52 +0000 (11:04 +0300)]
Removed generation of __version__.py

It makes gbs fail when run from source tree, if version is not
generated yet. It also breakes tests because of the same reason.

I reimplemented it in a way that version is taken from __init__.py and
imported or parsed where version info is needed.
Note, that in setup.py and Makefile it's parsed in order to less depend
on python code. setup and Make should be able to work even if
__init__.py has syntax errors. The only requirements to get a version
from there is that it should be in parseable form.

Change-Id: I928d4c75f970345c6ccd7be2cc54e4f3d9d1df38

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 agocmd_import: conform to new API of git-buildpackage
Markus Lehtonen [Wed, 11 Jul 2012 12:28:25 +0000 (15:28 +0300)]
cmd_import: conform to new API of git-buildpackage

git-import-srpm automatically detects unpacked srpms. Also, prevent it
from automatically applying patches (to match the old behaviour).

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agocmd_changelog: conform to new API of git-buildpackage
Markus Lehtonen [Wed, 4 Jul 2012 09:55:13 +0000 (12:55 +0300)]
cmd_changelog: conform to new API of git-buildpackage

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
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