]>
git.e2factory.org Git - e2factory.git/log
Tobias Ulmer [Wed, 22 Jun 2016 14:14:32 +0000 (16:14 +0200)]
e2tool: use new sources and results
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 25 May 2016 14:34:34 +0000 (16:34 +0200)]
Introduce result classes
basic_result class implements all common methods, but can't be used on
its own.
result_class represents the standard result type.
Special results can inherit from one of the two classes, overwriting
methods and such.
Composition is of course also possible, and may even be the better
option for plugins.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 25 May 2016 15:39:58 +0000 (17:39 +0200)]
environment: don't format the hash input
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 11 May 2016 17:46:25 +0000 (19:46 +0200)]
git: use hash_append
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 11 May 2016 17:29:54 +0000 (19:29 +0200)]
svn: use hash_append
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 11 May 2016 17:28:52 +0000 (19:28 +0200)]
files: use hash_append
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 25 May 2016 14:39:30 +0000 (16:39 +0200)]
add ass(e)rt module, provide global assert functions
Assert functions are modeled after luaunit, and share some of its code.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 11 May 2016 13:59:26 +0000 (15:59 +0200)]
project: use hash_append
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 11 May 2016 13:58:33 +0000 (15:58 +0200)]
licence: use hash_append
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 11 May 2016 13:57:05 +0000 (15:57 +0200)]
e2lib: sort required modules
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 9 May 2016 17:23:49 +0000 (19:23 +0200)]
chroot: use hash_append
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 9 May 2016 17:23:03 +0000 (19:23 +0200)]
cvs: use hash_append
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 9 May 2016 16:31:04 +0000 (18:31 +0200)]
chroot: unbreak module loading loop
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 17 Nov 2015 16:50:34 +0000 (17:50 +0100)]
policy: use eio
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 13 Nov 2015 17:11:04 +0000 (18:11 +0100)]
err: remove unused getcount() argument
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 13 Nov 2015 17:09:29 +0000 (18:09 +0100)]
project: move projid() to sensible location
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 13 Nov 2015 13:56:03 +0000 (14:56 +0100)]
Makefiles: stop build process at the error
set -e is no longer necessary since we pass it to SHELL directly.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 2 Nov 2015 14:38:53 +0000 (15:38 +0100)]
err: improve assert error messages
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 9 Apr 2015 13:05:47 +0000 (15:05 +0200)]
hash: correct error message
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 12 Mar 2015 19:48:24 +0000 (20:48 +0100)]
files: remove unused environment module
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 12 Mar 2015 17:13:02 +0000 (18:13 +0100)]
Revert "class: add obj_(un)lock_rw methods for debugging"
This reverts commit
881b2326718b872f02e0bc53ec3676f5e90d20a2 .
Tobias Ulmer [Thu, 12 Mar 2015 16:47:01 +0000 (17:47 +0100)]
Improve error handling in hash module
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 10 Mar 2015 16:43:52 +0000 (17:43 +0100)]
Improve stringlist insertion and sorting
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 11 Dec 2014 19:21:49 +0000 (20:21 +0100)]
class: add obj_(un)lock_rw methods for debugging
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 9 Dec 2014 20:25:03 +0000 (21:25 +0100)]
err: add asserts
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 9 Sep 2014 11:53:57 +0000 (13:53 +0200)]
remove disabled lock test code
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 9 Sep 2014 11:43:05 +0000 (13:43 +0200)]
remove unused stringlist selftest
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 8 Sep 2014 18:45:14 +0000 (20:45 +0200)]
remove broken sha1 tests
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 8 Sep 2014 17:33:16 +0000 (19:33 +0200)]
environment: remove disabled unit tests
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 8 Sep 2014 15:50:01 +0000 (17:50 +0200)]
e2lib.join: fix indentation
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 8 Sep 2014 15:48:15 +0000 (17:48 +0200)]
e2lib.join: detect nil components and throw an error.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 8 Sep 2014 13:31:46 +0000 (15:31 +0200)]
e2lib.log(): make newline optional
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 19 Aug 2014 13:36:06 +0000 (15:36 +0200)]
Handle fetching symlinks correctly, instead of creating 0 size file
This makes symlinks in proj/init work, and should also fix the use of
symlinks in other place. Also, the code should now detect other
non-regular files being fetched and return an error message in this case.
Fixes bz#141
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 25 Jul 2014 14:34:58 +0000 (16:34 +0200)]
show per-file licences
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 10 Jul 2014 12:06:27 +0000 (14:06 +0200)]
Improve accuracy of fetch-sources manual page
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 10 Jul 2014 12:03:52 +0000 (14:03 +0200)]
git source: explicitly fetch tags in addition to objects
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 24 Jun 2014 17:23:56 +0000 (19:23 +0200)]
Add source module and refactor e2source config handling.
* Introduce a source module with a basic_source class, which all source
plugins have to implement.
* Move info.sources to source module.
* Turn e2source config tables into defined objects with clear interface.
* Convert all source plugins to class interface, cleaning source
validation up.
* Improve error checking and detect typos in source configs.
* Add a stringlist module providing a ADT for the common case of dealing
with arrays of strings.
* Fix files plugin calculation of sourceid when using per-file licences
entries
* Many small fixes...
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 18 Jun 2014 13:10:05 +0000 (15:10 +0200)]
Fix rotating logs when the result name contains a dash
Do not rotate log if not required. General cleanup.
bz#140
Tobias Ulmer [Fri, 23 May 2014 16:34:04 +0000 (18:34 +0200)]
e2build: Warn about deploying to a disabled releases server
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 23 May 2014 16:31:54 +0000 (18:31 +0200)]
cache: add writeback_state()
Make it easy to check whether writeback is on or off for a certain
server.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 23 May 2014 16:29:55 +0000 (18:29 +0200)]
transport: add asserts
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 23 May 2014 15:32:33 +0000 (17:32 +0200)]
cache: Fix comments
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 23 May 2014 15:31:55 +0000 (17:31 +0200)]
cache: whitespace fixes
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 23 May 2014 15:30:44 +0000 (17:30 +0200)]
cache: Sprinkle assert()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 7 May 2014 15:04:25 +0000 (17:04 +0200)]
assert args
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 24 Apr 2014 17:04:30 +0000 (19:04 +0200)]
Don't jump through hoops to get the source name
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 23 Apr 2014 14:48:25 +0000 (16:48 +0200)]
Check types of unpack, copy and patch and allow only one per file entry
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 15 Apr 2014 16:02:00 +0000 (18:02 +0200)]
Simplify generic_source_default_working()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 15 Apr 2014 15:34:16 +0000 (17:34 +0200)]
Doc fix: type of file source is 'files'
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 15 Apr 2014 14:49:37 +0000 (16:49 +0200)]
Fix crash on invalid src.licences data type
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 15 Apr 2014 14:45:10 +0000 (16:45 +0200)]
Remove source validation, sources are valid at this point
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 11 Apr 2014 16:44:12 +0000 (18:44 +0200)]
Don't crash when "file" in source config is not of the expected type
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 26 Feb 2014 14:46:50 +0000 (15:46 +0100)]
Move e2project config handling into project module.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 26 Feb 2014 11:12:00 +0000 (12:12 +0100)]
Add getter/setter for info table
Doesn't have to be passed as an argument everywhere.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 25 Feb 2014 13:18:39 +0000 (14:18 +0100)]
Don't pass main string package into protected environment
The string package can easily be manipulated or variable passed around
in it. Supply each protected environment with its own copy of the
table and only add functions that are considered safe.
Tobias Ulmer [Wed, 12 Feb 2014 17:50:04 +0000 (18:50 +0100)]
Invert resultid/pbuildid ftab error signaling mechanism
Error is now signaled by either false or nil, true to skip and
checksum for everything else. Improve the callback function names for
debug.log and traces. Add documentation all round.
This makes callbacks behave like every other function, instead of a
loaded gun pointing at foot...
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 12 Feb 2014 14:50:47 +0000 (15:50 +0100)]
Improve e2tool check_results() doc
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 12 Feb 2014 14:35:18 +0000 (15:35 +0100)]
Allow returning error from e2tool.dlist()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 12 Feb 2014 14:21:54 +0000 (15:21 +0100)]
Missed return false to error() conversion
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 12 Feb 2014 14:10:18 +0000 (15:10 +0100)]
Remove some locals
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 11 Feb 2014 17:42:43 +0000 (18:42 +0100)]
Split chroot config into own module and class
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 11 Feb 2014 14:02:39 +0000 (15:02 +0100)]
Remove unused load functions in load_user_config2()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 11 Feb 2014 13:52:47 +0000 (14:52 +0100)]
Initialize the cache early
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 10 Feb 2014 19:21:04 +0000 (20:21 +0100)]
Remove info.chroot.groups and clean up
info.chroot.group_byname contains the same groups. Merge duplicate
documentation, lock most chroot tables, consistently use ipairs().
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 10 Feb 2014 18:29:10 +0000 (19:29 +0100)]
Simplify chroot setup by dropping build_config.groups
Use chroot groups of the result instead of going through
build_config.groups. Make sure res.chroot is sorted independent of
proj/chroot.
Previously we did a complicated dance adding all required groups to a
build_config dict and then iterated over the entire chroot table. The
order in which chroot groups were untared did depend on the order of
appearance in proj/chroot.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 7 Feb 2014 17:59:33 +0000 (18:59 +0100)]
Change pcall to e2lib.trycall, a wrapper with more debug information
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 6 Feb 2014 19:09:24 +0000 (20:09 +0100)]
Whoops, the -f in git checkout was missing
Works so much better now...
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 6 Feb 2014 19:02:34 +0000 (20:02 +0100)]
Log all external commands at debug level
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 6 Feb 2014 18:45:54 +0000 (19:45 +0100)]
Add missed return false on error
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 6 Feb 2014 17:04:37 +0000 (18:04 +0100)]
Make dofile2() more strict, improving config file error detection
The capability to disallow global variables and reading undefined
variables in configs existed for a long time but was not enabled for
most files... Implements bz#127
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 6 Feb 2014 11:13:40 +0000 (12:13 +0100)]
LicenceID includes the licence name
Makes no sense to hash it twice. Fixes bz#124
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 5 Feb 2014 14:24:44 +0000 (15:24 +0100)]
Create licence class and move all licence handling into own module
In addition to all the motions of moving licence out of e2tool, the
following bugs should be fixed in this commit:
svn plugin: Fix bz#123, include LicenceID in SourceID calculation
cvs plugin: Fix bz#126, backtrace when calculating LicenceID
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 5 Feb 2014 14:12:59 +0000 (15:12 +0100)]
Add or move generic table/attribute verification functions to e2lib
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 30 Jan 2014 17:31:14 +0000 (18:31 +0100)]
install class.lua
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 5 Feb 2014 14:03:41 +0000 (15:03 +0100)]
Add ldoc header for middleclass
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 30 Jan 2014 17:29:08 +0000 (18:29 +0100)]
add middleclass
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 5 Feb 2014 18:03:49 +0000 (19:03 +0100)]
strict: point error to the stack frame where it occurred
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 30 Jan 2014 18:53:29 +0000 (19:53 +0100)]
files: error out if the unpack location doesn't exist after unpacking
A mistake here leads to a confusing error message that is by itself
correct, but hard to understand for the user.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 3 Feb 2014 16:51:16 +0000 (17:51 +0100)]
Run e2 tools in protected mode, allowing for use of error()
Convert the top level error handling to error(). Not buying us much as
of now, but it's a start.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 30 Jan 2014 18:41:08 +0000 (19:41 +0100)]
Move check_project_info into collect_project_info
The distinction makes little sense now, since collect_project_info also
does a lot of checking.
One less step for local tools required
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 27 Jan 2014 19:31:21 +0000 (20:31 +0100)]
Remove a couple of chroot fields that don't exist any more
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 24 Jan 2014 16:14:30 +0000 (17:14 +0100)]
Only 6 X are replaced in by mktemp... functions, shorten
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 24 Jan 2014 16:13:58 +0000 (17:13 +0100)]
Document rsync version requirement
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 23 Jan 2014 18:48:41 +0000 (19:48 +0100)]
Cleanup collect_project, document, add pbuildid fn...
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 23 Jan 2014 18:47:23 +0000 (19:47 +0100)]
e2tool: Remove remnants of collect_project
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 22 Jan 2014 20:06:07 +0000 (21:06 +0100)]
Move collect_project resultid calculation out of e2tool
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 22 Jan 2014 20:04:44 +0000 (21:04 +0100)]
Add note about what return values resultid() expects
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 22 Jan 2014 18:54:58 +0000 (19:54 +0100)]
There is no r.pseudo_result field anywhere...
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 22 Jan 2014 18:54:08 +0000 (19:54 +0100)]
Document e2tool.dsort()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 22 Jan 2014 18:51:45 +0000 (19:51 +0100)]
Document e2tool.dlist_recursive() and clarify the code
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 22 Jan 2014 18:50:02 +0000 (19:50 +0100)]
Improve documentation, mostly error cases
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 22 Jan 2014 18:45:36 +0000 (19:45 +0100)]
Remove nil in return and error statements
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 22 Jan 2014 14:26:31 +0000 (15:26 +0100)]
Remove some left over error handling
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 22 Jan 2014 13:29:11 +0000 (14:29 +0100)]
Don't use stdio to deal with pipes.
Buffering and attempts to loop until a buffer is filled make it
a pain to work with.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 21 Jan 2014 19:02:33 +0000 (20:02 +0100)]
eio: add read, write and close, return file descriptor from pipe()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 21 Jan 2014 18:58:48 +0000 (19:58 +0100)]
Add read, write, and close wrapers
Stdio only works well with regular files. For pipes, the native syscalls
work much better.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 21 Jan 2014 18:52:49 +0000 (19:52 +0100)]
Plug small memory leak in case of poll error
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 21 Jan 2014 18:51:13 +0000 (19:51 +0100)]
Reduce and refine tracing a bit
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 21 Jan 2014 18:46:17 +0000 (19:46 +0100)]
Fix collect_project, add missing info.cache argument
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 16 Jan 2014 19:22:38 +0000 (20:22 +0100)]
Adjust callcmd() to the new poll() interface
Signed-off-by: Tobias Ulmer <tu@emlix.com>