]> git.e2factory.org Git - e2factory.git/log
e2factory.git
8 years agoFix typo
Tobias Ulmer [Wed, 11 Dec 2013 16:16:15 +0000 (17:16 +0100)]
Fix typo

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoRemove dead code
Tobias Ulmer [Tue, 10 Dec 2013 20:34:26 +0000 (21:34 +0100)]
Remove dead code

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoIntegrate hashcache into hash module
Tobias Ulmer [Tue, 10 Dec 2013 20:26:46 +0000 (21:26 +0100)]
Integrate hashcache into hash module

Use hash_file_once() most everywhere. Hashcache keeps track of number of
cache hits and limits the cache to the 1000 most used.

It's also much more strict in what is considered a match.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2tool: Remove hash_path() and use hash.hash_file_once instead
Tobias Ulmer [Fri, 6 Dec 2013 17:53:37 +0000 (18:53 +0100)]
e2tool: Remove hash_path() and use hash.hash_file_once instead

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agohash: Add hash_file_once() which does all the hash context work
Tobias Ulmer [Fri, 6 Dec 2013 17:53:17 +0000 (18:53 +0100)]
hash: Add hash_file_once() which does all the hash context work

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agotools: Remove tools that are no longer called directly
Tobias Ulmer [Fri, 6 Dec 2013 16:37:25 +0000 (17:37 +0100)]
tools: Remove tools that are no longer called directly

sha1sum, md5sum, cat, uname, and bzip2

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agotransport: Fix wrong documentation for file_path()
Tobias Ulmer [Fri, 6 Dec 2013 14:34:44 +0000 (15:34 +0100)]
transport: Fix wrong documentation for file_path()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agotransport: in fetch_file, improve doc and remove strange tmp path splitting
Tobias Ulmer [Fri, 6 Dec 2013 14:26:42 +0000 (15:26 +0100)]
transport: in fetch_file, improve doc and remove strange tmp path splitting

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agocache: transport.fetch_file does not take a flags argument
Tobias Ulmer [Fri, 6 Dec 2013 14:22:17 +0000 (15:22 +0100)]
cache: transport.fetch_file does not take a flags argument

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agogit: cosmetic cleanup
Tobias Ulmer [Fri, 6 Dec 2013 14:20:02 +0000 (15:20 +0100)]
git: cosmetic cleanup

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2tool: Convert to absolute paths and remove e2tool.lcd()
Tobias Ulmer [Fri, 6 Dec 2013 13:50:48 +0000 (14:50 +0100)]
e2tool: Convert to absolute paths and remove e2tool.lcd()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2-cf: Use absolute paths everywhere
Tobias Ulmer [Fri, 6 Dec 2013 13:48:15 +0000 (14:48 +0100)]
e2-cf: Use absolute paths everywhere

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2build: Remove all chdir() games and deal with absolute paths only
Tobias Ulmer [Fri, 6 Dec 2013 13:45:27 +0000 (14:45 +0100)]
e2build: Remove all chdir() games and deal with absolute paths only

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2tool: extend resultdir(), sourceconfig() and friends by an optional prefix
Tobias Ulmer [Fri, 6 Dec 2013 13:43:30 +0000 (14:43 +0100)]
e2tool: extend resultdir(), sourceconfig() and friends by an optional prefix

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoAdd workdir argument to svn_tool() and use it
Tobias Ulmer [Fri, 6 Dec 2013 13:33:22 +0000 (14:33 +0100)]
Add workdir argument to svn_tool() and use it

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoExtend e2lib.call_tool_argv() with optional workdir and envdict args
Tobias Ulmer [Fri, 6 Dec 2013 13:34:49 +0000 (14:34 +0100)]
Extend e2lib.call_tool_argv() with optional workdir and envdict args

Both are passed to callcmd()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoCorrect write_extension_config() doc comment
Tobias Ulmer [Fri, 6 Dec 2013 13:30:42 +0000 (14:30 +0100)]
Correct write_extension_config() doc comment

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agofetch-project: Fix absolute destination paths
Tobias Ulmer [Fri, 6 Dec 2013 13:26:12 +0000 (14:26 +0100)]
fetch-project: Fix absolute destination paths

Bug introduced in 6d3d6f5de9c9667c4e679909b2a34590a89c18bb on
Thu Oct 31 21:29:36 2013 +0100. Didn't make it into a release.
A testcase has been created for this problem.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoStop changing directory in e2-install-e2
Tobias Ulmer [Wed, 4 Dec 2013 15:16:13 +0000 (16:16 +0100)]
Stop changing directory in e2-install-e2

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoNo need for chdir in fetch-project
Tobias Ulmer [Wed, 4 Dec 2013 15:14:03 +0000 (16:14 +0100)]
No need for chdir in fetch-project

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoRead/write global_interface_version_file from an absolute path
Tobias Ulmer [Wed, 4 Dec 2013 14:52:44 +0000 (15:52 +0100)]
Read/write global_interface_version_file from an absolute path

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoDefine syntax_file global and use it
Tobias Ulmer [Wed, 4 Dec 2013 14:42:24 +0000 (15:42 +0100)]
Define syntax_file global and use it

Removes another static field from the info table.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoUse e2lib.parse_e2versionfile() instead of hand-rolled code
Tobias Ulmer [Wed, 4 Dec 2013 14:20:39 +0000 (15:20 +0100)]
Use e2lib.parse_e2versionfile() instead of hand-rolled code

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoExtend e2lib.read_extension_config()
Tobias Ulmer [Wed, 4 Dec 2013 14:17:12 +0000 (15:17 +0100)]
Extend e2lib.read_extension_config()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoProvide global for e2version file and use it
Tobias Ulmer [Wed, 4 Dec 2013 13:23:39 +0000 (14:23 +0100)]
Provide global for e2version file and use it

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoProvide global for project-location and use it
Tobias Ulmer [Wed, 4 Dec 2013 12:14:57 +0000 (13:14 +0100)]
Provide global for project-location and use it

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2-create-project: use absolute paths instead of chdir
Tobias Ulmer [Wed, 4 Dec 2013 02:34:38 +0000 (03:34 +0100)]
e2-create-project: use absolute paths instead of chdir

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoparse_server_location: improve doc, lock table, fix return errors
Tobias Ulmer [Tue, 3 Dec 2013 18:19:27 +0000 (19:19 +0100)]
parse_server_location: improve doc, lock table, fix return errors

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoMassage e2.conf searching/parsing into a single function.
Tobias Ulmer [Mon, 2 Dec 2013 19:35:42 +0000 (20:35 +0100)]
Massage e2.conf searching/parsing into a single function.

Move read_global_config() into e2lib.get_global_config().

Collapse reading of .e2/e2config into get_global_config(). Remove need for
e2lib.globals.cmdline vector which was only used to pass --e2-config
around. Remove e2lib.sete2config() which used to set the E2_CONFIG
environment variable for calling another e2 tool.

In e2-fetch-project, pass arg vector to e2-install-e2. Previously this
relied on E2_CONFIG being set. Now all arguments, --e2-config, warning
flags and verbosity options are passed along.

The returned config table is locked to detect errors.

Update ldoc comments while cleaning up.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoFormat option and flag dicts
Tobias Ulmer [Mon, 2 Dec 2013 18:49:27 +0000 (19:49 +0100)]
Format option and flag dicts

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoFix typos in warning flags, clarify
Tobias Ulmer [Mon, 2 Dec 2013 18:33:26 +0000 (19:33 +0100)]
Fix typos in warning flags, clarify

Update copyright year while there.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoLock e2lib.globals table and clean up variables
Tobias Ulmer [Mon, 2 Dec 2013 12:12:42 +0000 (13:12 +0100)]
Lock e2lib.globals table and clean up variables

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoRemove unused variable LUA_ALL_VERSIONS
Tobias Ulmer [Mon, 2 Dec 2013 11:58:14 +0000 (12:58 +0100)]
Remove unused variable LUA_ALL_VERSIONS

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoReplace os.execute() with e2lib.callcmd()
Tobias Ulmer [Fri, 29 Nov 2013 17:44:14 +0000 (18:44 +0100)]
Replace os.execute() with e2lib.callcmd()

No more shell string concatenation and quoting...

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2-cf: use callcmd to start editor
Tobias Ulmer [Fri, 29 Nov 2013 17:42:42 +0000 (18:42 +0100)]
e2-cf: use callcmd to start editor

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoSimplify man viewer execution
Tobias Ulmer [Fri, 29 Nov 2013 17:41:34 +0000 (18:41 +0100)]
Simplify man viewer execution

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoDelete unused debug and playground globals
Tobias Ulmer [Fri, 29 Nov 2013 17:39:25 +0000 (18:39 +0100)]
Delete unused debug and playground globals

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoTry to make --log-debug documentation less confusing
Tobias Ulmer [Fri, 29 Nov 2013 16:57:06 +0000 (17:57 +0100)]
Try to make --log-debug documentation less confusing

This is a developer option with limited use to the general user. It
makes it possible to see at which warning or log level a message is sent
to the console.

This information is also available in debug.log, thus this option is more
or less obsolete. Too bad it's documented already...

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoRemove dead code: e2lib.getlogflags()
Tobias Ulmer [Fri, 29 Nov 2013 14:23:36 +0000 (15:23 +0100)]
Remove dead code: e2lib.getlogflags()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agodo_execvp: Allocate space for the terminating NULL pointer
Tobias Ulmer [Fri, 29 Nov 2013 13:51:41 +0000 (14:51 +0100)]
do_execvp: Allocate space for the terminating NULL pointer

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoUse console module everywhere
Tobias Ulmer [Wed, 27 Nov 2013 19:00:34 +0000 (20:00 +0100)]
Use console module everywhere

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2lib: open console as soon as possible and close it last
Tobias Ulmer [Wed, 27 Nov 2013 18:57:47 +0000 (19:57 +0100)]
e2lib: open console as soon as possible and close it last

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2lib: add doc comments for warn/warnf
Tobias Ulmer [Wed, 27 Nov 2013 18:55:51 +0000 (19:55 +0100)]
e2lib: add doc comments for warn/warnf

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoPrevent module loading loop between e2lib, eio and console
Tobias Ulmer [Wed, 27 Nov 2013 18:53:47 +0000 (19:53 +0100)]
Prevent module loading loop between e2lib, eio and console

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoAdd console module
Tobias Ulmer [Wed, 27 Nov 2013 18:46:59 +0000 (19:46 +0100)]
Add console module

All IO to the console should go through this module from now on.
Read the LDoc comments for details.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2-dlist: fix format string for invalid result
Tobias Ulmer [Wed, 27 Nov 2013 17:41:18 +0000 (18:41 +0100)]
e2-dlist: fix format string for invalid result

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2-dlist: repair crash on error, include err module
Tobias Ulmer [Wed, 27 Nov 2013 17:33:36 +0000 (18:33 +0100)]
e2-dlist: repair crash on error, include err module

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoRemove the now unused e2lib.callcmd_pipe()
Tobias Ulmer [Tue, 26 Nov 2013 15:36:13 +0000 (16:36 +0100)]
Remove the now unused e2lib.callcmd_pipe()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoDirectly checkout or copy instead of using callcmd_pipe with tar
Tobias Ulmer [Tue, 26 Nov 2013 15:34:52 +0000 (16:34 +0100)]
Directly checkout or copy instead of using callcmd_pipe with tar

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoUse ssh_remote_cmd() to remotely calculate the checksum
Tobias Ulmer [Mon, 25 Nov 2013 18:51:17 +0000 (19:51 +0100)]
Use ssh_remote_cmd() to remotely calculate the checksum

Use digest.parsestring() to split the output instead of some ad-hoc
matching. This concludes the removal of io.popen().

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agodigest: add parsestring() function, rewrite internals
Tobias Ulmer [Mon, 25 Nov 2013 18:43:44 +0000 (19:43 +0100)]
digest: add parsestring() function, rewrite internals

The old digest matcher could not handle spaces in filenames. Write a
better parser that can handle these, and error out on escaped digests (which
should be pretty rare).

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoExtend e2lib.ssh_remote_cmd() to capture and return stdout
Tobias Ulmer [Mon, 25 Nov 2013 18:34:28 +0000 (19:34 +0100)]
Extend e2lib.ssh_remote_cmd() to capture and return stdout

Easy with the new callcmd()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoDeal with chrootgroupid() errors and remove dead code
Tobias Ulmer [Mon, 25 Nov 2013 16:26:57 +0000 (17:26 +0100)]
Deal with chrootgroupid() errors and remove dead code

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2build: use eio
Tobias Ulmer [Mon, 25 Nov 2013 13:17:59 +0000 (14:17 +0100)]
e2build: use eio

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2-playground: use eio
Tobias Ulmer [Mon, 25 Nov 2013 13:14:47 +0000 (14:14 +0100)]
e2-playground: use eio

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoUse eio for writing hashcache
Tobias Ulmer [Mon, 25 Nov 2013 13:13:03 +0000 (14:13 +0100)]
Use eio for writing hashcache

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoWrite debuglogfile using eio
Tobias Ulmer [Mon, 25 Nov 2013 13:10:33 +0000 (14:10 +0100)]
Write debuglogfile using eio

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoplugins: convert Makefile generation to eio
Tobias Ulmer [Mon, 25 Nov 2013 12:31:42 +0000 (13:31 +0100)]
plugins: convert Makefile generation to eio

While there, call the "makefile" "Makefile", like everyone else

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agodigest: use eio to write digest file
Tobias Ulmer [Mon, 25 Nov 2013 12:16:47 +0000 (13:16 +0100)]
digest: use eio to write digest file

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2: replace shell string construction and quoting with callcmd()
Tobias Ulmer [Fri, 22 Nov 2013 14:29:13 +0000 (15:29 +0100)]
e2: replace shell string construction and quoting with callcmd()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoMark rc/256 as construct specific to os.execute
Tobias Ulmer [Fri, 22 Nov 2013 11:35:29 +0000 (12:35 +0100)]
Mark rc/256 as construct specific to os.execute

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2option: showtoolmanpage() does return, handle return code correctly
Tobias Ulmer [Fri, 22 Nov 2013 11:33:30 +0000 (12:33 +0100)]
e2option: showtoolmanpage() does return, handle return code correctly

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoAdd return of terminating signal in e2lib.wait()
Tobias Ulmer [Fri, 22 Nov 2013 11:29:45 +0000 (12:29 +0100)]
Add return of terminating signal in e2lib.wait()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoSync hash module with lsha1 changes, improve documentation and error handling
Tobias Ulmer [Thu, 21 Nov 2013 14:35:45 +0000 (15:35 +0100)]
Sync hash module with lsha1 changes, improve documentation and error handling

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoSimplify lsha1.c and bring it in line with leio and le2lib
Tobias Ulmer [Thu, 21 Nov 2013 14:22:41 +0000 (15:22 +0100)]
Simplify lsha1.c and bring it in line with leio and le2lib

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoDon't hard-code make, but fetch the command from buildconfig
Tobias Ulmer [Wed, 20 Nov 2013 17:59:33 +0000 (18:59 +0100)]
Don't hard-code make, but fetch the command from buildconfig

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoAdd sha1 to list of 3RDPARTY sources
Tobias Ulmer [Wed, 20 Nov 2013 17:33:54 +0000 (18:33 +0100)]
Add sha1 to list of 3RDPARTY sources

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoHandle sourceset2ref errors correctly
Tobias Ulmer [Wed, 20 Nov 2013 16:46:38 +0000 (17:46 +0100)]
Handle sourceset2ref errors correctly

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoDocument generic_git.sourceset2ref(), improve error reporting
Tobias Ulmer [Wed, 20 Nov 2013 16:46:03 +0000 (17:46 +0100)]
Document generic_git.sourceset2ref(), improve error reporting

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2-new-source: generic_git.new_repository() has no flags argument any more
Tobias Ulmer [Wed, 20 Nov 2013 16:25:29 +0000 (17:25 +0100)]
e2-new-source: generic_git.new_repository() has no flags argument any more

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agogeneric_git: Remove usage markers and unused flags argument
Tobias Ulmer [Wed, 20 Nov 2013 16:23:58 +0000 (17:23 +0100)]
generic_git: Remove usage markers and unused flags argument

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoImprove callcmd()/fdct documentation
Tobias Ulmer [Wed, 20 Nov 2013 16:06:05 +0000 (17:06 +0100)]
Improve callcmd()/fdct documentation

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoRemove e2lib.sha1sum() in favor of the hash module
Tobias Ulmer [Wed, 20 Nov 2013 15:50:52 +0000 (16:50 +0100)]
Remove e2lib.sha1sum() in favor of the hash module

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoUse hash module to calculate sha1 sum
Tobias Ulmer [Wed, 20 Nov 2013 15:48:36 +0000 (16:48 +0100)]
Use hash module to calculate sha1 sum

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoAdjust to get_tool_flags() change, convert back to string where required
Tobias Ulmer [Tue, 19 Nov 2013 19:01:36 +0000 (20:01 +0100)]
Adjust to get_tool_flags() change, convert back to string where required

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2-install-e2: Remove shell quoting
Tobias Ulmer [Tue, 19 Nov 2013 18:59:18 +0000 (19:59 +0100)]
e2-install-e2: Remove shell quoting

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agodigest: Improve developer docs
Tobias Ulmer [Tue, 19 Nov 2013 18:58:18 +0000 (19:58 +0100)]
digest: Improve developer docs

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2-fetch-project: Remove shell quoting
Tobias Ulmer [Tue, 19 Nov 2013 18:57:36 +0000 (19:57 +0100)]
e2-fetch-project: Remove shell quoting

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2build: Remove shell quoting and prepare an arg vector
Tobias Ulmer [Tue, 19 Nov 2013 18:56:39 +0000 (19:56 +0100)]
e2build: Remove shell quoting and prepare an arg vector

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agogeneric_git.git(): Remove shell string construction
Tobias Ulmer [Tue, 19 Nov 2013 18:51:29 +0000 (19:51 +0100)]
generic_git.git(): Remove shell string construction

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoCVS: Vectorize arguments and call new cvs_tool()
Tobias Ulmer [Tue, 19 Nov 2013 18:46:31 +0000 (19:46 +0100)]
CVS: Vectorize arguments and call new cvs_tool()

Lots of crummy code removed and refactored.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agotools.get_tool_flags(): Return vector of flags instead of string
Tobias Ulmer [Tue, 19 Nov 2013 18:34:35 +0000 (19:34 +0100)]
tools.get_tool_flags(): Return vector of flags instead of string

Adds a parser so users don't have to change their e2.conf. The parser
handles single and double quote strings as well as \\ and \" escapes.

Allows converting all tool calls to argv without loss of functionality.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agotools.check_tool(): Use argv
Tobias Ulmer [Tue, 19 Nov 2013 18:28:15 +0000 (19:28 +0100)]
tools.check_tool(): Use argv

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoRemove e2lib.cat(), which was yet another way to do simple IO...
Tobias Ulmer [Tue, 19 Nov 2013 18:24:25 +0000 (19:24 +0100)]
Remove e2lib.cat(), which was yet another way to do simple IO...

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoAdd doc hint to mv and cp functions
Tobias Ulmer [Tue, 19 Nov 2013 18:23:06 +0000 (19:23 +0100)]
Add doc hint to mv and cp functions

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agocall_tool_argv(): No more shell string construction
Tobias Ulmer [Tue, 19 Nov 2013 18:21:59 +0000 (19:21 +0100)]
call_tool_argv(): No more shell string construction

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoRemove call_tool(), call_tool_argv() is the new king
Tobias Ulmer [Tue, 19 Nov 2013 18:20:09 +0000 (19:20 +0100)]
Remove call_tool(), call_tool_argv() is the new king

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoUse the digest module instead of call_tool and sha1sum
Tobias Ulmer [Tue, 19 Nov 2013 18:43:53 +0000 (19:43 +0100)]
Use the digest module instead of call_tool and sha1sum

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoFix e2lib.execvp() doc
Tobias Ulmer [Tue, 19 Nov 2013 18:19:11 +0000 (19:19 +0100)]
Fix e2lib.execvp() doc

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoIntroduce elib.callcmd() with more flexibility
Tobias Ulmer [Tue, 19 Nov 2013 18:09:43 +0000 (19:09 +0100)]
Introduce elib.callcmd() with more flexibility

Commands can now be passed as argument vectors straight into execvp().
This removes all shell quoting headaches when going through this
interface.
File descriptors can be set up in a table-driven way as necessary.
A workdir for the child can be set. Environment variables can be
supplied now.

All callcmd friends are either removed or converted to this interface
with the exception of callcmd_pipe().

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoRemove shell command constructs from git.toresult()
Tobias Ulmer [Mon, 18 Nov 2013 17:53:51 +0000 (18:53 +0100)]
Remove shell command constructs from git.toresult()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoImprove error reporting in e2lib.setenv()
Tobias Ulmer [Mon, 18 Nov 2013 13:34:34 +0000 (14:34 +0100)]
Improve error reporting in e2lib.setenv()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoImplement e2lib.execvp()
Tobias Ulmer [Mon, 18 Nov 2013 13:29:22 +0000 (14:29 +0100)]
Implement e2lib.execvp()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoMove patch() into files plugin and convert to argv
Tobias Ulmer [Mon, 18 Nov 2013 13:25:10 +0000 (14:25 +0100)]
Move patch() into files plugin and convert to argv

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoe2lib.cp: change flags to recursive and use an argv
Tobias Ulmer [Fri, 15 Nov 2013 17:03:41 +0000 (18:03 +0100)]
e2lib.cp: change flags to recursive and use an argv

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoInitialize shift, gcc complains because the conditions are a little twisted
Tobias Ulmer [Fri, 15 Nov 2013 15:18:49 +0000 (16:18 +0100)]
Initialize shift, gcc complains because the conditions are a little twisted

8 years agoDisable do_unsetenv() for now, silences gcc complaints
Tobias Ulmer [Fri, 15 Nov 2013 15:09:54 +0000 (16:09 +0100)]
Disable do_unsetenv() for now, silences gcc complaints

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoInline callcmd() in callcmd_pipe() in order to remove later
Tobias Ulmer [Fri, 15 Nov 2013 12:12:14 +0000 (13:12 +0100)]
Inline callcmd() in callcmd_pipe() in order to remove later

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoCorrect e2lib.poll() documentation
Tobias Ulmer [Fri, 15 Nov 2013 12:09:15 +0000 (13:09 +0100)]
Correct e2lib.poll() documentation

Signed-off-by: Tobias Ulmer <tu@emlix.com>
8 years agoRepair error reporting in e2lib.wait()
Tobias Ulmer [Fri, 15 Nov 2013 11:39:21 +0000 (12:39 +0100)]
Repair error reporting in e2lib.wait()

Signed-off-by: Tobias Ulmer <tu@emlix.com>