]>
git.e2factory.org Git - e2factory.git/log
Tobias Ulmer [Tue, 21 May 2013 17:19:05 +0000 (19:19 +0200)]
Fix indentation
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 15 May 2013 18:03:13 +0000 (20:03 +0200)]
Add error checking to directory() loops
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 15 May 2013 17:54:32 +0000 (19:54 +0200)]
Rework directory() iterator to not use abort()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 8 May 2013 17:01:42 +0000 (19:01 +0200)]
Remove comments about abort
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 8 May 2013 16:21:10 +0000 (18:21 +0200)]
Adjust callers of e2lib.callcmd_pipe()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 8 May 2013 15:43:37 +0000 (17:43 +0200)]
Rework callcmd_pipe() to not use abort()
Rename and restructure it a bit to make it more understandable
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 3 May 2013 13:08:30 +0000 (15:08 +0200)]
Replace abort() in guards of dofile2() with error()
Here error() is called in a protected environment. We get an error
message back instead of instantly terminating the program.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 3 May 2013 11:20:53 +0000 (13:20 +0200)]
Correct buildid() documentation
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 3 May 2013 11:17:59 +0000 (13:17 +0200)]
Remove unused function check_workingcopies()
Reported by Thomas Brinker
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 3 May 2013 11:16:31 +0000 (13:16 +0200)]
Remove unused parameters from e2tool.check_project_info()
Reported by Thomas Brinker
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 3 May 2013 11:08:57 +0000 (13:08 +0200)]
Remove redundant p.server assignment
Reported by Thomas Brinker
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 3 May 2013 11:07:03 +0000 (13:07 +0200)]
Merge dofile_protected() into dofile2()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 29 Apr 2013 17:11:55 +0000 (19:11 +0200)]
remove unused e2lib.parse_versionfile()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 26 Apr 2013 14:46:01 +0000 (16:46 +0200)]
Add error handling to e2lib.mktempfile()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 26 Apr 2013 14:05:16 +0000 (16:05 +0200)]
Add error handling to e2lib.mktempdir()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 25 Apr 2013 16:47:16 +0000 (18:47 +0200)]
Rework error handling in parse_e2versionfile()
Remove e2_has_fixed_tag() its return values conflict with error
reporting and we can just inline the single use (minus the messages)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 25 Apr 2013 14:27:51 +0000 (16:27 +0200)]
Add error handling to e2lib.get_global_config()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 25 Apr 2013 14:12:41 +0000 (16:12 +0200)]
Add error handling to e2lib.init2()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 25 Apr 2013 13:14:59 +0000 (15:14 +0200)]
Make use_global_config() local and remove calls to abort()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 24 Apr 2013 15:44:45 +0000 (17:44 +0200)]
e2lib.init() can now return errors
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 22 Apr 2013 14:18:07 +0000 (16:18 +0200)]
Handle errors from e2option.parse()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 22 Apr 2013 14:14:17 +0000 (16:14 +0200)]
e2option: remove abort() wherever possible
Remaining calls to finish() and abort() should only affect command
arguments that are expected to exit the process immediately.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 17 Apr 2013 16:30:36 +0000 (18:30 +0200)]
generic_git: remove all calls to abort()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 17 Apr 2013 15:41:05 +0000 (17:41 +0200)]
plugin: remove call to abort()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 17 Apr 2013 14:22:20 +0000 (16:22 +0200)]
e2tool: select_result() now returns error instead of calling abort()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 17 Apr 2013 13:24:42 +0000 (15:24 +0200)]
e2tool: buildid() now returns error instead of calling abort()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 16 Apr 2013 14:37:26 +0000 (16:37 +0200)]
e2tool: remove abort() from projid() and pbuildid()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 16 Apr 2013 14:12:54 +0000 (16:12 +0200)]
e2tool: remove abort() from collect_project_info()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 16 Apr 2013 12:36:49 +0000 (14:36 +0200)]
cvs: remove e2lib.abort()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 16 Apr 2013 12:34:50 +0000 (14:34 +0200)]
files: remove elib.abort()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 16 Apr 2013 10:09:10 +0000 (12:09 +0200)]
policy: remove e2lib.abort()
handle_commandline_options() now return an err object
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 15 Apr 2013 17:35:36 +0000 (19:35 +0200)]
git: remove e2lib.abort()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 15 Apr 2013 17:30:52 +0000 (19:30 +0200)]
svn: remove e2lib.abort()
Tobias Ulmer [Mon, 15 Apr 2013 15:38:54 +0000 (17:38 +0200)]
Remove calls to e2lib.abort() in global tools
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 15 Apr 2013 13:55:58 +0000 (15:55 +0200)]
Remove calls to e2lib.abort() in local tools
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 12 Apr 2013 16:12:02 +0000 (18:12 +0200)]
Put local tools code into functions
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 11 Apr 2013 17:46:23 +0000 (19:46 +0200)]
Put global tool code into functions
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 12 Apr 2013 14:31:12 +0000 (16:31 +0200)]
Fix dsort module name
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 11 Apr 2013 16:50:15 +0000 (18:50 +0200)]
Format and remove log messages
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 19 Feb 2016 14:18:11 +0000 (15:18 +0100)]
git: fetch tags and pull ff-only
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 13 Oct 2015 17:34:00 +0000 (19:34 +0200)]
create next changelog entry
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 13 Oct 2015 17:34:00 +0000 (19:34 +0200)]
release e2factory-2.3.14p1
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 13 Oct 2015 17:30:46 +0000 (19:30 +0200)]
Document .e2/e2config
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 9 Oct 2015 17:16:17 +0000 (19:16 +0200)]
add unoffical E2_TRACE env var, for debugging only
Not documented, may go away or change without notice
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 9 Oct 2015 11:57:41 +0000 (13:57 +0200)]
chroot template: don't point to internal resources
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 7 Oct 2015 18:53:24 +0000 (20:53 +0200)]
init: wrap io.open/popen with variants setting FD_CLOEXEC
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 7 Oct 2015 18:51:12 +0000 (20:51 +0200)]
init: close everything but stdin, stdout and stderr
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 7 Oct 2015 18:44:44 +0000 (20:44 +0200)]
check whether open(/dev/null) succeeded
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 7 Oct 2015 18:41:14 +0000 (20:41 +0200)]
plug a number of file descriptor leaks
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 9 Oct 2015 17:17:47 +0000 (19:17 +0200)]
set FD_CLOEXEC on dup'ed file descriptors in child
Be careful not to close the descriptor we want to pass on (0, 1, 2)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 7 Oct 2015 16:37:42 +0000 (18:37 +0200)]
luafile: new function cloexec() to set FD_CLOEXEC on file
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 7 Oct 2015 16:30:58 +0000 (18:30 +0200)]
luafile: open now sets FD_CLOEXEC by default
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 7 Oct 2015 16:21:05 +0000 (18:21 +0200)]
e2util: implement closefrom()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 6 Oct 2015 12:21:58 +0000 (14:21 +0200)]
e2build: fix wrong use of shquote(), makes x86_64 chroot work
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 1 Oct 2015 14:44:45 +0000 (16:44 +0200)]
chroot arch: fix regression, make x86_64 work again
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 1 Oct 2015 12:34:48 +0000 (14:34 +0200)]
Makefile: stop exporting so many environment variables
This export business is annoying while testing e2factory during
development . It's also difficult to reason about the origin of a
variable value, since they show up by including make.vars as well as
being inherited through the environment. The only obvious user has been
converted (GENSCRIPT)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 1 Oct 2015 12:31:46 +0000 (14:31 +0200)]
Makefile: explicitly pass build variables to genscript.sh
Use $(GENSCRIPT) to call the script from any Makefile
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 1 Oct 2015 09:43:54 +0000 (11:43 +0200)]
Makefile: remove 'tags' target
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 30 Sep 2015 12:53:23 +0000 (14:53 +0200)]
Makefile: remove unused 'check' target
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 16 Sep 2015 19:33:11 +0000 (21:33 +0200)]
hashcache: prevent erroneous same-second cache hits
One second resolution is clearly not enough. Compare nanosecond mtime
and ctime as well as size to prevent accidental cache hits.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 16 Sep 2015 18:50:41 +0000 (20:50 +0200)]
e2util.stat(): provide nanosecond precision
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 29 Jul 2015 10:31:50 +0000 (12:31 +0200)]
Reset all signal handlers to their defaults
bz#147
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
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 19 Aug 2014 13:36:06 +0000 (15:36 +0200)]
Handle fetching/pushing symlinks instead of creating empty files
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>
Rolf Eike Beer [Fri, 10 Jan 2014 10:59:45 +0000 (11:59 +0100)]
mention curl as requirement
Tobias Ulmer [Tue, 25 Mar 2014 17:23:53 +0000 (18:23 +0100)]
create next changelog entry
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 25 Mar 2014 17:23:53 +0000 (18:23 +0100)]
release e2factory-2.3.14p0
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 25 Mar 2014 16:47:06 +0000 (17:47 +0100)]
Unbreak --wc-mode and make it work with intermediary deps
Adds a partially random buildid to scratch results, triggering a rebuild
of any result that has a scratch result in its dependency chain.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 25 Mar 2014 16:34:07 +0000 (17:34 +0100)]
Forbid --all with results and --wc-mode without results
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 25 Mar 2014 16:19:38 +0000 (17:19 +0100)]
Fix svn.sourceid(), include SVN revision in sourceid
Previously the svn plugin would not notice moving tags and branch mode
was broken. Also fixes licenseid calculation for svn sources.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 3 Mar 2014 13:30:43 +0000 (14:30 +0100)]
Add e2lib.call_tool_argv_capture()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 29 Jan 2014 14:00:37 +0000 (15:00 +0100)]
Fix operator precedence in licence validation
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 29 Jan 2014 13:40:34 +0000 (14:40 +0100)]
Fix operator precedence in cvs and svn source validation
"not" binds higher, turning these expressions into false == "string" on
errors.
src.tag not being set causes a stack trace later on.
A regression test has been added.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 22 Jan 2014 19:23:18 +0000 (20:23 +0100)]
Fix error in tartype_by_suffix()
Found by Wolfgang Gehrhardt
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 20 Sep 2013 15:26:54 +0000 (17:26 +0200)]
Fix collect_project regression
Make collect_project work with init files again. A regression test
has been added.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 13 Jun 2013 13:51:58 +0000 (15:51 +0200)]
create next changelog entry
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 13 Jun 2013 13:51:58 +0000 (15:51 +0200)]
release e2factory-2.3.14
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 11 Jun 2013 17:38:48 +0000 (19:38 +0200)]
create next changelog entry
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 11 Jun 2013 17:38:48 +0000 (19:38 +0200)]
release e2factory-2.3.14rc1
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 11 Jun 2013 16:21:21 +0000 (18:21 +0200)]
Hash the result name.
The result name is passed into the build chroot as environment variable.
To prevent the same build ids for results that are equal in all but the
name, the name must be considered when calculating the build id.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 30 May 2013 16:34:03 +0000 (18:34 +0200)]
Remove hardcoded base chroot group from collect_project
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 9 Apr 2013 15:54:32 +0000 (17:54 +0200)]
Require tools module, fixes trace building in wc-mode
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 19 Mar 2013 16:26:47 +0000 (17:26 +0100)]
create next changelog entry
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 19 Mar 2013 16:26:46 +0000 (17:26 +0100)]
release e2factory-2.3.13
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 18 Mar 2013 17:20:19 +0000 (18:20 +0100)]
create next changelog entry
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 18 Mar 2013 17:20:19 +0000 (18:20 +0100)]
release e2factory-2.3.13rc5
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 18 Mar 2013 13:54:37 +0000 (14:54 +0100)]
Repair e2lib.islocaltool(), look at the right place
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 18 Mar 2013 13:01:18 +0000 (14:01 +0100)]
Remove regexp matching for manpages
Pretty silly, seems to be a left-over from a previous iteration of the
code.
In addition, don't mention anything about sections as there is no
support for matching them (yet). We do not have manpages with the same
name in both sections, so it's not a problem for now.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Thomas Brinker [Mon, 11 Mar 2013 12:56:09 +0000 (13:56 +0100)]
manpages: bug-fixes
Tobias Ulmer [Fri, 8 Mar 2013 17:22:35 +0000 (18:22 +0100)]
create next changelog entry
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 8 Mar 2013 17:22:35 +0000 (18:22 +0100)]
release e2factory-2.3.13rc4
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 8 Mar 2013 12:35:31 +0000 (13:35 +0100)]
Repair interrupt_hook() call from signal handler
Also ignore signal while interrupt_hook() is running, to prevent
cleanup from being interrupted.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 7 Mar 2013 17:25:59 +0000 (18:25 +0100)]
create next changelog entry
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 7 Mar 2013 17:25:59 +0000 (18:25 +0100)]
release e2factory-2.3.13rc3
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 7 Mar 2013 17:22:23 +0000 (18:22 +0100)]
Respect $EDITOR
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 6 Mar 2013 18:56:35 +0000 (19:56 +0100)]
Add git url support to git plugin
Suggested by patch from CADCON
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 6 Mar 2013 18:20:04 +0000 (19:20 +0100)]
Add http, https and svn url support to svn plugin
Suggested by a patch from CADCON
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 6 Mar 2013 17:15:55 +0000 (18:15 +0100)]
Revert "use the tools module instead of hardcoding chown"
This reverts commit
52571c840e035bf9abc4e724b453001ce7abca8d .
External tools and tools inside the chroot are different beasts. Revert
my commit as this was plain wrong.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 6 Mar 2013 16:35:11 +0000 (17:35 +0100)]
create next changelog entry
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 6 Mar 2013 16:35:11 +0000 (17:35 +0100)]
release e2factory-2.3.13rc2
Signed-off-by: Tobias Ulmer <tu@emlix.com>