packaging: add %defattr to all %files sections

Change-Id: I6de131d173fc990bb0b95341440fb934b3a05576
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
CachedRepo: close the lock file when unlocking

Change-Id: I8bf56bff0ca63ed4b6c0fef8b28ab36a7d4f7668
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
CachedRepo: make attribute variables private

Change-Id: Ia0b31f32203d5cac7a3360f69557bcb62f270b6e
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
CachedRepo: implement close() method

For invalidating the object without the need of deleting it.

Change-Id: I6e5210c06f7eb559609d956456be958a8a4232c2
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
CachedRepo: trivial typo fixes in some code comments

Change-Id: If22edde90b45bf5a48b71cdfe741b27b1409f9e5
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
MirrorGitRepository: methods for setting/getting ref

Implement methods for setting and getting refs.  These handle symbolic
and non-symbolic refs automatically.

Change-Id: Idc3dcc389722c569ddc725097115408455de498a
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
MirrorGitRepository: fix git-fetch failure when local HEAD is invalid

Git fetch fails if local HEAD is a non-symbolic ref and points to a
non-existent object.

We get into this state in CachedRepo if the remote HEAD is invalid (e.g.
points to a non-existent branch) as we forcefully invalidate local HEAD
in this case, too.

Change-Id: I68dff3b4692bef0c3b5399f06c7097af1cf104b3
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp.conf: add gbp-rpm-ch settings and ignore branch

Change-Id: I85e9dd99862fcfd0cdc7a711612d22de505b26e6
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Release 0.5

Change-Id: I989f52447e465ebb28ccdc4f448016fe44fd583c
packaging: start development cycle for 0.6

Change-Id: Ib629104a3a74af43e6de762357a390a1dc9b5962
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
MirrorGitRepository: add get_tag_info() method

For getting data about a tag - similar to get_commit_info().

Change-Id: I158b9fffd831842253147bec8d88ecee511ee0c1
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
utils: new method for writing git tree-ish meta informat

Implement a new write_treeish_meta() function that writes meta
information about a git tree-ish into a file in json format.

Change-Id: I7f7b265be335fc2670c66d25f6c97516cae74e12
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
New option for creating a git-meta file

Add a new 'git-meta' option for writing metadata about the exported
treeish into a text file in json format. The argument for the option is
the filename to write into.

NOTE! Be careful with the filename: the service fails if the filename
already exists in the exported files.

Change-Id: I7e7c1ce6559ac7ef27ea5fda1619c280cdcc76f0
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
tests: add one missing docstring

Change-Id: I3bee9e123c2e328bf6992c31fec849defcb6ba99
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Release version 0.6

Change-Id: I05a9486b367cc9d5f8ff8a4bcf24073ffeff3229