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

11 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>
11 years agoAdd supporting armv6l
Zhang Qiang [Thu, 29 Nov 2012 08:00:41 +0000 (16:00 +0800)]
Add supporting armv6l

depanneur will do more arch compatible checking

Change-Id: I4476fdf447cdd3438b264f94d1c8373ec3787736

11 years agocheck if upstream and pristine-tar are available in remote, #551
Zhang Qiang [Wed, 28 Nov 2012 06:57:45 +0000 (14:57 +0800)]
check if upstream and pristine-tar are available in remote, #551

Change-Id: Ie38295a60d8ab2b58fbc1150b2bcaa12cb8e6bee

11 years agoUpdate dependency and bump to 0.12
Zhang Qiang [Mon, 26 Nov 2012 08:00:24 +0000 (16:00 +0800)]
Update dependency and bump to 0.12

Change-Id: I00907f70cb8aeddece3e71ba463ea89f5e451c15

11 years agoAdd --clean-repos option, #548
Zhang Qiang [Tue, 27 Nov 2012 08:20:18 +0000 (16:20 +0800)]
Add --clean-repos option, #548

This option is used to cleanup local repos generated by 'gbs build'

If there're some old RPMs in 'gbs build's local repo, this option
can be used to clean up them.

Change-Id: I1ccbceaa01c8c20a909102727a76e2cf314b80d9

11 years agoLaunch editor for long submit request message. #553
Huang Hao [Tue, 27 Nov 2012 05:30:36 +0000 (13:30 +0800)]
Launch editor for long submit request message. #553

* add functions edit() and edit_files()
* change argument of TempCopy.__init__ from original_path to
    content
* change test_changelog.py to make tests pass

Change-Id: I59b10276db6d5e0fd9843009be01c218c440ece5

11 years agoimport: invert the --no-merge option to --merge
Markus Lehtonen [Tue, 27 Nov 2012 14:32:44 +0000 (16:32 +0200)]
import: invert the --no-merge option to --merge

Not-merging should be the default as merging upstream to master very
easily breaks the patch generation. Moreover, using gbs import to import
tarballs creates the 'upstream' branch which enables patch-generation.
Thus, the gbs toolset currently supports a haphazard/broken workflow.

Merging only fits in the "one-big-tarball" maintenance model, do it only
if user really requests it.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoAdd release notes for gbs 0.11
Zhang Qiang [Mon, 26 Nov 2012 09:55:24 +0000 (17:55 +0800)]
Add release notes for gbs 0.11

Change-Id: I4ba5db662e1c0bf37f8233c5d3c607e867cb873a

11 years agoExport to $packaging_dir. #521
Huang Hao [Mon, 26 Nov 2012 02:49:02 +0000 (10:49 +0800)]
Export to $packaging_dir. #521

Change-Id: I7899df49c2281563311415331695e15808c17035

11 years agoRemove trailing slash in $packaging_dir.
Huang Hao [Mon, 26 Nov 2012 03:24:49 +0000 (11:24 +0800)]
Remove trailing slash in $packaging_dir.

Build will fail if pass --packaging-dir=xxx/ to depanneur

Change-Id: I99695c57241f576c8dab262a7ffb135858a9dd70

11 years agoIgnore .gbs.conf in patch-generation
Markus Lehtonen [Fri, 23 Nov 2012 09:26:19 +0000 (11:26 +0200)]
Ignore .gbs.conf in patch-generation

The package-specific configuration file can be seen as a packaging
files. Don't generate patches that add/modify .gbs.conf.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoNo hard code default base project, #539
Zhang Qiang [Wed, 21 Nov 2012 06:47:34 +0000 (14:47 +0800)]
No hard code default base project, #539

* If you realy want to to use default base project, you can set
  base_prj in obs section of .gbs.conf
* If no base project, and no target project specified, the default
  target project is home:<user>:gbs
* If base_project specified, then target project will be:
  home:<user>:gbs:<target_project>
* If no base project, and target project need to be created, then
  gbs will give warning to ask user to set repos for new target
  project manually.

Change-Id: Ib65e90f076f186e3486837199c2098dd723f67d5

11 years agoMerge "x86_64 support, #527" into devel
Zhang Qiang [Thu, 22 Nov 2012 08:19:35 +0000 (00:19 -0800)]
Merge "x86_64 support, #527" into devel

11 years agomsger: sync with the new rewritten gbp logging
Markus Lehtonen [Tue, 20 Nov 2012 08:10:37 +0000 (10:10 +0200)]
msger: sync with the new rewritten gbp logging

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoMerge "Modify changelog order to follow default order of git log. #508" into devel
Qiang Z Zhang [Thu, 22 Nov 2012 07:53:51 +0000 (23:53 -0800)]
Merge "Modify changelog order to follow default order of git log. #508" into devel

11 years agocmd_import: enable importing patches
Markus Lehtonen [Wed, 7 Nov 2012 15:38:06 +0000 (17:38 +0200)]
cmd_import: enable importing patches

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agox86_64 support, #527
Zhang Qiang [Tue, 20 Nov 2012 06:57:44 +0000 (14:57 +0800)]
x86_64 support, #527

Change-Id: I9e9e1f94d60dae3f61df0a1b880250220511e203

11 years agoMerge remote-tracking branch 'origin/release-0.11.1' into devel
Zhang Qiang [Wed, 21 Nov 2012 05:24:23 +0000 (13:24 +0800)]
Merge remote-tracking branch 'origin/release-0.11.1' into devel

11 years agoModify changelog order to follow default order of git log. #508
Huang Hao [Tue, 20 Nov 2012 08:47:30 +0000 (16:47 +0800)]
Modify changelog order to follow default order of git log. #508

Change-Id: Id5575f47a8dad741bbca1956b279eb9857dfa0fc

11 years agoChange --spec to use only base file name
Huang Hao [Mon, 12 Nov 2012 10:05:48 +0000 (18:05 +0800)]
Change --spec to use only base file name

Detail of discussion is in #485

* --spec accept only base file name
* only check spec file in working copy if --include-all is given,
  otherwise check in commit
* if gbs want to parse spec file, it must parse the correct
  version that in --commit(default HEAD)
* unify --spec for all subcommands
  - ch: use the spec given first
  - rb: --include-all means to use work copy, otherwise checkout
    spec in some revision to parse
  - lb: check only one project is about to build and
    pass --spec directly to depanneur
* add several helper functions
  - show_file_from_rev: cat file content from given rev
  - file_exists_in_rev: check whether file exist in given rev
  - glob_in_rev: glob file pattern in given rev

Change-Id: I0621634b50ddedf65eab3c41db4d6f537194b345

11 years agoRemove pylint warnings
Huang Hao [Mon, 19 Nov 2012 07:33:17 +0000 (15:33 +0800)]
Remove pylint warnings

Change-Id: I5cafb9637fea36d9612c708fc57daba302f19648

11 years agoAdd --define option. #540
Huang Hao [Mon, 19 Nov 2012 03:54:34 +0000 (11:54 +0800)]
Add --define option. #540

Change-Id: Ic924d639908a1ce731bb525cbcaba02217930377

11 years agoshow simple progress message for long time operations #325
Zhang Qiang [Wed, 14 Nov 2012 23:10:17 +0000 (07:10 +0800)]
show simple progress message for long time operations #325

Change-Id: I1df3f74459dd92cb77f1cd7d7879d965578b8d0b

11 years agoAdd --keep-packs to keep unused packages in buildroot, #516
Zhang Qiang [Wed, 14 Nov 2012 06:52:25 +0000 (14:52 +0800)]
Add --keep-packs to keep unused packages in buildroot, #516

Change-Id: I902d98b07eaa0596849a550f7f4b97716d828468

11 years agoBump to version gbs 0.11.1 release-0.11.1 0.11.1
Zhang Qiang [Mon, 12 Nov 2012 03:08:30 +0000 (11:08 +0800)]
Bump to version gbs 0.11.1

Update dependency: depanneur(>=0.2.1)

Change-Id: I8d0de5c8c72311a1fdd932f596b05504595f4813

11 years agoset TIZEN_BUILD_ROOT as abspath
Zhang Qiang [Fri, 9 Nov 2012 08:37:27 +0000 (16:37 +0800)]
set TIZEN_BUILD_ROOT as abspath

Change-Id: Ie1df08b2b62ca1b9f07e6ae5ee08567e291646ed

11 years agonoinit support
Zhang Qiang [Tue, 6 Nov 2012 00:38:15 +0000 (08:38 +0800)]
noinit support

--noinit can't be specified together with --clean or --clean-once

Change-Id: Ib3fd84ae6b53db9478b69c9daf99fe23c5f12c4e

11 years agoRemove output repo and buildroot info to depanneur, #482
Zhang Qiang [Wed, 7 Nov 2012 08:29:15 +0000 (16:29 +0800)]
Remove output repo and buildroot info to depanneur, #482

Change-Id: If885f0e62a5aa1368b33e924a4dbb6ecb845ed72

11 years agopristine-tar import support and update dependency release-0.11 0.11
Zhang Qiang [Fri, 2 Nov 2012 13:21:41 +0000 (21:21 +0800)]
pristine-tar import support and update dependency

Change-Id: I830c4ff4ff6c95d8713584c098faf77c264f6536

11 years agoSupport for configurable packaging directory
Markus Lehtonen [Fri, 17 Aug 2012 13:58:10 +0000 (16:58 +0300)]
Support for configurable packaging directory

Add config file parameter and command line option to specify the
packaging directory. Command line option takes preference over the
config file setting.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoFixed empty response crash
Ed Bartosh [Fri, 26 Oct 2012 21:52:32 +0000 (00:52 +0300)]
Fixed empty response crash

Sometimemes OBS returns empty response without raising any exceptions.
remove_files API tries to parse this response as xml and crashing if
it's empty. It happens not very often, so trying 3 times to get
something parseable should work around this OBS bug.

Fixes: #495

Change-Id: Ica6c4fc3acf01f4c698651606dd1472ef888adf7
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agoImplemented uploading only changed files to OBS
Ed Bartosh [Fri, 26 Oct 2012 21:18:00 +0000 (00:18 +0300)]
Implemented uploading only changed files to OBS

Before uploading local files to OBS remotebuild code now checks if it's
really needed. Only new and changed files are uploaded. Old files are
deleted from OBS project.

This change also reorganizes remotebuild code a bit to avoid repeated
queries to OBS.

Fixes: #474

Change-Id: Ib67e84765b6ffc39de7185c437342d7a261018de
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
11 years agobump to version gbs 0.11
Zhang Qiang [Thu, 25 Oct 2012 11:49:20 +0000 (19:49 +0800)]
bump to version gbs 0.11

Change-Id: Ib475a847d03c709d16f957184fc6d2189932abe2

11 years agoFix typos. #497
Huang Hao [Fri, 26 Oct 2012 03:06:24 +0000 (11:06 +0800)]
Fix typos. #497

Change-Id: Ifdacca345a449ffbd8ba503a0dc8d5b399ba50d1

11 years agoUpdate dependency for gbs 0.11
Zhang Qiang [Thu, 25 Oct 2012 01:53:05 +0000 (09:53 +0800)]
Update dependency for gbs 0.11

* depanneur >= 0.2
* tizen-gbp-rpm >= 2012.10.25
* osc >= 0.136.0

Change-Id: Ia3e1d947e1c5134df3cf2780d33288e13f6ac053

11 years agoChange default repo config. Fix #488
Huang Hao [Thu, 25 Oct 2012 05:55:29 +0000 (13:55 +0800)]
Change default repo config. Fix #488

* change default repo from snapshots to releases
* comment repos of base and main

Change-Id: If1c2ba3911e6301a41883335c7f1e126ea1725e3

11 years agofix backtrace while trying to remove 'None' file, #490
Zhang Qiang [Wed, 24 Oct 2012 13:03:27 +0000 (21:03 +0800)]
fix backtrace while trying to remove 'None' file, #490

Change-Id: I7d1b7c3701fb9e36006b7f88a9248feb4bcd4060

11 years agoMerge "guess_spec() should return a spec belonging to given project" into devel
Qiang Z Zhang [Wed, 24 Oct 2012 09:37:58 +0000 (02:37 -0700)]
Merge "guess_spec() should return a spec belonging to given project" into devel

11 years agodepend osc-0.136
Zhang Qiang [Mon, 22 Oct 2012 05:38:34 +0000 (13:38 +0800)]
depend osc-0.136

Change-Id: Ia0488e4fcec45a27c3c01965cfe9ea3bccced03e

11 years agoguess_spec() should return a spec belonging to given project
Huang Hao [Wed, 24 Oct 2012 07:32:45 +0000 (15:32 +0800)]
guess_spec() should return a spec belonging to given project

Fix #483

Change-Id: I29810b0ae6aa11598793cd7dc3fcf29616330a97