]>
git.e2factory.org Git - e2factory.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Tobias Ulmer [Mon, 18 Nov 2013 13:29:22 +0000 (14:29 +0100)]
Implement e2lib.execvp()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
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>
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>
Tobias Ulmer [Fri, 15 Nov 2013 15:18:49 +0000 (16:18 +0100)]
Initialize shift, gcc complains because the conditions are a little twisted
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>
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>
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>
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>
Tobias Ulmer [Wed, 13 Nov 2013 19:19:57 +0000 (20:19 +0100)]
Improve eio error messages, keep the file name/fd around
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 13 Nov 2013 19:18:21 +0000 (20:18 +0100)]
eio.fread() now requires a size
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 13 Nov 2013 19:17:06 +0000 (20:17 +0100)]
Use eio in hash_file()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 13 Nov 2013 16:31:10 +0000 (17:31 +0100)]
Add "size" argument to eio.fread()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 12 Nov 2013 15:30:37 +0000 (16:30 +0100)]
Replace shell command mktemp with a mkstemp() call.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 12 Nov 2013 15:27:02 +0000 (16:27 +0100)]
Provide mkstemp() wrapper
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 12 Nov 2013 14:51:43 +0000 (15:51 +0100)]
Replace shell command mktemp -d with a mkdtemp() call.
One more io.popen() is gone.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 12 Nov 2013 14:46:32 +0000 (15:46 +0100)]
Add mkdtemp() wrapper.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 12 Nov 2013 14:45:02 +0000 (15:45 +0100)]
lib is an array, dereferencing it for a pointer is wrong.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 12 Nov 2013 14:43:37 +0000 (15:43 +0100)]
isdigit() is declared in ctype.h, include it
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 12 Nov 2013 14:04:29 +0000 (15:04 +0100)]
Replace popen() with callcmd_capture() and require missing err module.
Due to pure luck, nobody ran into a code path using err yet...
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 12 Nov 2013 13:06:34 +0000 (14:06 +0100)]
Stop accessing private hash context fields, call hash functions via module
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 11 Nov 2013 20:15:19 +0000 (21:15 +0100)]
Mark the hash context fields private, force calls to go through module
Make it possible to grep for calls and change the implementation.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 11 Nov 2013 18:58:22 +0000 (19:58 +0100)]
Fix crash on MD5 checksum entry
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 11 Nov 2013 16:54:18 +0000 (17:54 +0100)]
Convert digest.parse() to eio
Use digest functions to construct digest table and entries.
Fix a file descriptor leak.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 8 Nov 2013 18:17:07 +0000 (19:17 +0100)]
Remove unused global env table
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 8 Nov 2013 18:14:47 +0000 (19:14 +0100)]
Remove global interactive flag
Was probably once used to enter a debug mode. Since that's no more,
axe the variable.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 8 Nov 2013 18:07:59 +0000 (19:07 +0100)]
We don't use hostname for anything, remove the code
Another io.popen call bites the dust.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 8 Nov 2013 17:46:27 +0000 (18:46 +0100)]
Could not find out what use the "mmm" sourceset is, remove it
Introduced in
53183d030127937d41a5bf211b22255cd4991eec , without a single
reference anywhere, nor explanation why sourceset would be "mmm"...
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 7 Nov 2013 11:26:04 +0000 (12:26 +0100)]
Include PID in trace logging
Surprisingly no measurable increase in run time
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 6 Nov 2013 18:01:41 +0000 (19:01 +0100)]
Extend trace module to allow for filtering
Attempt to reduce the debug.log noise by filtering the err module
warnf/logf calls and others.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 6 Nov 2013 16:12:05 +0000 (17:12 +0100)]
Move e2lib.svn() into the SVN plugin
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 6 Nov 2013 14:08:47 +0000 (15:08 +0100)]
git_init_db1(): remove default behaviour, require a choice
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 6 Nov 2013 13:33:42 +0000 (14:33 +0100)]
Remove e2lib.git comment
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 6 Nov 2013 13:31:57 +0000 (14:31 +0100)]
Merge git_new_argv2() into generic_git.git_new_argv()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 5 Nov 2013 19:33:07 +0000 (20:33 +0100)]
Remove e2lib.git() for good
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 5 Nov 2013 19:32:17 +0000 (20:32 +0100)]
All generic_git.git_rev_list1() users are gone, delete it
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 5 Nov 2013 19:31:33 +0000 (20:31 +0100)]
In git.check_workingcopy(), use lookup_id to find the branch
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 5 Nov 2013 19:29:57 +0000 (20:29 +0100)]
Sync fetch_source with fetch-project, use lookup_id and clean up
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 5 Nov 2013 19:21:25 +0000 (20:21 +0100)]
Overhaul git.update() making use of the work in generic_git
Update does not create merge commits any more. This change requires a
git version supporting git merge --ff-only. Tested with version 1.6.6.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 5 Nov 2013 19:19:37 +0000 (20:19 +0100)]
git.git_commit_id(): use lookup_id() function
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 5 Nov 2013 19:17:10 +0000 (20:17 +0100)]
Use absolute GIT_DIR path, decouple errors from dirty/mismatch flag
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 5 Nov 2013 19:14:07 +0000 (20:14 +0100)]
Simplify generic_git.verify_remote_tag() using new lookup functions
Gets rid of the temporary remote tag that could potentially destroy a
valid tag if there was a name collision.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 5 Nov 2013 19:12:04 +0000 (20:12 +0100)]
Replace e2lib.git() with generic_git functions.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 5 Nov 2013 19:06:07 +0000 (20:06 +0100)]
Add generic_git.lookup_id() and lookup_ref()
Interface to provide translation between a git reference and git
commit ID.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 5 Nov 2013 15:41:31 +0000 (16:41 +0100)]
Fix git name and note the oldest supported git version.
Older versions should still work, but fetch-sources --update uses
--ff-only which does not exist in earlier versions.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 1 Nov 2013 15:46:12 +0000 (16:46 +0100)]
Use git_checkout() instead of hand-rolled solution
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 31 Oct 2013 20:38:02 +0000 (21:38 +0100)]
e2-install-e2: make destdir an absolute path
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 31 Oct 2013 20:29:36 +0000 (21:29 +0100)]
e2-fetch-project: make p.destdir an absolute path
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 31 Oct 2013 19:50:00 +0000 (20:50 +0100)]
Wean e2-create-project off of e2lib.git and use generic_git
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 30 Oct 2013 14:09:48 +0000 (15:09 +0100)]
Add git_commit_id() function to git SCM plugin and clean up
This function may come handy in other plugins. Makes use of the
fixed generic_git.git_rev_list1() function.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 31 Oct 2013 19:33:30 +0000 (20:33 +0100)]
Complete overhaul of generic_git module
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 3 Dec 2013 13:54:44 +0000 (14:54 +0100)]
Add url.to_file_path()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 31 Oct 2013 13:03:55 +0000 (14:03 +0100)]
Remove now unused e2lib.ssh(), improve ssh_remote_cmd()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 30 Oct 2013 19:06:30 +0000 (20:06 +0100)]
Use ssh_remote_cmd() to create directory
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 30 Oct 2013 18:11:13 +0000 (19:11 +0100)]
Add ssh_remote_cmd(), a wrapper for executing commands remotely
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Wed, 30 Oct 2013 17:49:00 +0000 (18:49 +0100)]
Document url object fields some more
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 29 Oct 2013 19:43:15 +0000 (20:43 +0100)]
Allow SCM modules to register interfaces not common to all modules
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 29 Oct 2013 15:02:28 +0000 (16:02 +0100)]
Extend documentation of e2lib.callcmd_capture()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Tue, 29 Oct 2013 15:00:32 +0000 (16:00 +0100)]
Generate documentation for plugins again.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Mon, 28 Oct 2013 13:24:24 +0000 (14:24 +0100)]
Do not mangle module name with an underscore in debug log
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 25 Oct 2013 15:48:47 +0000 (17:48 +0200)]
Replace write_file with eio.file_write()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Fri, 25 Oct 2013 10:33:28 +0000 (12:33 +0200)]
Convert write_extension_config() to eio and move into e2-create-project
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 24 Oct 2013 16:45:58 +0000 (18:45 +0200)]
Merge read_file() and read_template() into a local function
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 24 Oct 2013 14:57:51 +0000 (16:57 +0200)]
Replace read_line with eio.file_read_line()
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 24 Oct 2013 10:33:00 +0000 (12:33 +0200)]
Disable tracing in parts of hash and eio module
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Tobias Ulmer [Thu, 24 Oct 2013 10:28:17 +0000 (12:28 +0200)]
Add trace module, used for logging all function calls
Remove previous implementation from e2lib and move it into a
free-standing module. Extend so it can be disabled and enabled when
convenient.
Signed-off-by: Tobias Ulmer <tu@emlix.com>