]> git.e2factory.org Git - e2factory.git/log
e2factory.git
12 years agoImprove plugin module documentation
Tobias Ulmer [Fri, 8 Feb 2013 11:58:32 +0000 (12:58 +0100)]
Improve plugin module documentation

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRepair error propagation from sub-makes
Tobias Ulmer [Thu, 7 Feb 2013 16:36:36 +0000 (17:36 +0100)]
Repair error propagation from sub-makes

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoClean up git.check_workingcopy(), improve error handling
Tobias Ulmer [Thu, 7 Feb 2013 11:19:33 +0000 (12:19 +0100)]
Clean up git.check_workingcopy(), improve error handling

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoImprove read_line doc and return a sensible error message
Tobias Ulmer [Wed, 6 Feb 2013 19:25:52 +0000 (20:25 +0100)]
Improve read_line doc and return a sensible error message

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove e2lib.e2_su()
Tobias Ulmer [Tue, 5 Feb 2013 19:25:08 +0000 (20:25 +0100)]
Remove e2lib.e2_su()

The tool does not exist any more, remove the function call as well.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoCast argv to the right pointer type
Tobias Ulmer [Tue, 5 Feb 2013 19:07:05 +0000 (20:07 +0100)]
Cast argv to the right pointer type

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoDrop unused variable rc
Tobias Ulmer [Tue, 5 Feb 2013 19:05:48 +0000 (20:05 +0100)]
Drop unused variable rc

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove warning when hardlinking fails
Tobias Ulmer [Tue, 5 Feb 2013 17:41:50 +0000 (18:41 +0100)]
Remove warning when hardlinking fails

Also remove bogus error catenation. Link failures will still be logged
by the kernel, but they are harmless.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd files to ignore on newly created projects.
Tobias Ulmer [Tue, 5 Feb 2013 16:59:41 +0000 (17:59 +0100)]
Add files to ignore on newly created projects.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove e2option.documentation
Tobias Ulmer [Fri, 1 Feb 2013 17:49:34 +0000 (18:49 +0100)]
Remove e2option.documentation

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoMake sure new-source gets the correct number of arguments
Tobias Ulmer [Fri, 1 Feb 2013 18:56:32 +0000 (19:56 +0100)]
Make sure new-source gets the correct number of arguments

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRename arg in e2lib.parse_server_location(), add assert
Tobias Ulmer [Fri, 1 Feb 2013 18:51:29 +0000 (19:51 +0100)]
Rename arg in e2lib.parse_server_location(), add assert

arg is used as a hidden parameter by Lua.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoe2: call usage() with the proper exit code
Tobias Ulmer [Fri, 1 Feb 2013 17:52:46 +0000 (18:52 +0100)]
e2: call usage() with the proper exit code

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd tools.isinitialized()
Tobias Ulmer [Fri, 1 Feb 2013 17:44:46 +0000 (18:44 +0100)]
Add tools.isinitialized()

Return whether the tools module still needs to be initialized or not.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agotools: add "man" tool.
Tobias Ulmer [Fri, 1 Feb 2013 17:42:05 +0000 (18:42 +0100)]
tools: add "man" tool.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoUndeclared field access is ok unless field is a string.
Tobias Ulmer [Fri, 1 Feb 2013 17:34:38 +0000 (18:34 +0100)]
Undeclared field access is ok unless field is a string.

strict does not have the ability to declare fields like arr[1]. Until
functionality is added that allows this, disable the fatal error for all
non-string types.

Also fix up a couple of comments.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoe2lib: add isglobaltool() and isglocaltool()
Tobias Ulmer [Fri, 1 Feb 2013 17:29:56 +0000 (18:29 +0100)]
e2lib: add isglobaltool() and isglocaltool()

A tool may also be neither global nor local. An example would be "e2"
itself.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoMove defaultoptions() and userdefaultoptions() out of parse()
Tobias Ulmer [Wed, 23 Jan 2013 16:15:24 +0000 (17:15 +0100)]
Move defaultoptions() and userdefaultoptions() out of parse()

Makes it clear that nothing fancy is going on, these are just factored
out for clarity.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove e2lib.chomp() and e2lib.read_configuration()
Tobias Ulmer [Thu, 24 Jan 2013 17:56:26 +0000 (18:56 +0100)]
Remove e2lib.chomp() and e2lib.read_configuration()

Both are unused.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd (minimal) documentation to all e2lib functions
Tobias Ulmer [Thu, 24 Jan 2013 17:15:39 +0000 (18:15 +0100)]
Add (minimal) documentation to all e2lib functions

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoConvert locate_project_root() documentation to ldoc.
Tobias Ulmer [Thu, 24 Jan 2013 13:57:14 +0000 (14:57 +0100)]
Convert locate_project_root() documentation to ldoc.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd e2lib.cleanup(), to be called before we exit e2.
Tobias Ulmer [Wed, 23 Jan 2013 16:08:17 +0000 (17:08 +0100)]
Add e2lib.cleanup(), to be called before we exit e2.

Deduplicates code that needs to run before we exit the e2 process.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoBuildid change: remove workaround to keep buildid identical
Tobias Ulmer [Wed, 30 Jan 2013 20:20:25 +0000 (21:20 +0100)]
Buildid change: remove workaround to keep buildid identical

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoBuildid change: stop indiscriminately hashing the "base" group
Tobias Ulmer [Wed, 30 Jan 2013 19:55:57 +0000 (20:55 +0100)]
Buildid change: stop indiscriminately hashing the "base" group

Fixes a stacktrace when using a chroot config default group different to
"base". This fix causes a buildid change, since the invalid base group
was hashed into the result buildid.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agodoc: fix makefiles
Thomas Brinker [Mon, 14 Jan 2013 14:24:44 +0000 (15:24 +0100)]
doc: fix makefiles

12 years agoman-page, e2source: improve description of attribute "copy", fixes bugzilla 34
Thomas Brinker [Mon, 14 Jan 2013 09:13:57 +0000 (10:13 +0100)]
man-page, e2source: improve description of attribute "copy", fixes bugzilla 34

12 years agodocumentation: remove the outdated mark-down-based docs
Thomas Brinker [Thu, 10 Jan 2013 09:38:17 +0000 (10:38 +0100)]
documentation: remove the outdated mark-down-based docs

12 years agoman-pages: adopt Makefiles to new man-pages
Thomas Brinker [Thu, 10 Jan 2013 09:36:56 +0000 (10:36 +0100)]
man-pages: adopt Makefiles to new man-pages

12 years agoman-pages: Create/rework tool related manpages
Thomas Brinker [Wed, 9 Jan 2013 15:05:10 +0000 (16:05 +0100)]
man-pages: Create/rework tool related manpages

12 years agoman-pages: add a newline at end of file to allow full display
Thomas Brinker [Wed, 9 Jan 2013 14:59:23 +0000 (15:59 +0100)]
man-pages: add a newline at end of file to allow full display

12 years agoman-pages: Create/rework config-file related manpages and e2factory head manpage
Thomas Brinker [Wed, 9 Jan 2013 09:08:03 +0000 (10:08 +0100)]
man-pages: Create/rework config-file related manpages and e2factory head manpage

12 years agoRemove example directory, outdated
Tobias Ulmer [Fri, 18 Jan 2013 18:45:26 +0000 (19:45 +0100)]
Remove example directory, outdated

There are plans to revive the examples as more full-featured but
separate project.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove unused e2lib.read_all() and fix documentation
Tobias Ulmer [Fri, 18 Jan 2013 18:31:29 +0000 (19:31 +0100)]
Remove unused e2lib.read_all() and fix documentation

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoremove unused skip_checkout variable
Tobias Ulmer [Fri, 18 Jan 2013 17:19:59 +0000 (18:19 +0100)]
remove unused skip_checkout variable

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoremove e2lib.program_output() and inline its only user
Tobias Ulmer [Fri, 18 Jan 2013 16:59:16 +0000 (17:59 +0100)]
remove e2lib.program_output() and inline its only user

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agofetch-sources: do checkout files after cloning a new source
Tobias Ulmer [Fri, 18 Jan 2013 16:43:01 +0000 (17:43 +0100)]
fetch-sources: do checkout files after cloning a new source

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRework howtounpack() and friends to fix shell quoting.
Tobias Ulmer [Tue, 15 Jan 2013 15:56:51 +0000 (16:56 +0100)]
Rework howtounpack() and friends to fix shell quoting.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agotools: add function to get the tool name
Tobias Ulmer [Tue, 15 Jan 2013 15:55:59 +0000 (16:55 +0100)]
tools: add function to get the tool name

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agouse e2lib.logf()
Tobias Ulmer [Tue, 15 Jan 2013 12:38:17 +0000 (13:38 +0100)]
use e2lib.logf()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoImprove update source error message by including the source name
Tobias Ulmer [Mon, 14 Jan 2013 15:02:48 +0000 (16:02 +0100)]
Improve update source error message by including the source name

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRewrite and fix e2source copy handling.
Tobias Ulmer [Fri, 11 Jan 2013 18:42:07 +0000 (19:42 +0100)]
Rewrite and fix e2source copy handling.

Add consistent and sensible behavior for the copy option. Share code
with the function having to do the same operation for collect_project.
While there, add LDoc comments.

Repairs trac bugs #1003 and #1019.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoGenerate help for all functions.
Tobias Ulmer [Fri, 11 Jan 2013 18:39:48 +0000 (19:39 +0100)]
Generate help for all functions.

Ldoc will otherwise filter out local functions.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRepair dirname and basename
Tobias Ulmer [Wed, 9 Jan 2013 12:10:53 +0000 (13:10 +0100)]
Repair dirname and basename

basename and dirname must be able to handle paths ending in zero or more
slashes. Concatenation of dir- and basename will otherwise go wrong in
edge cases.

previously:
dirname(foo/bar/) -> foo/bar
basename(foo/bar/) -> bar
=> foo/bar/bar

now:
dirname(foo/bar///) -> foo
basename(foo/bar///) -> bar
=> foo/bar

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd more smarts to the tracer() function.
Tobias Ulmer [Fri, 14 Dec 2012 14:52:11 +0000 (15:52 +0100)]
Add more smarts to the tracer() function.

Detects binary strings and sorts out functions based on the C module
(which does not give useful information anyway). Do not log return from
functions. All this speeds up my tests by 7%.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoExplicitly load e2util module in e2lib
Tobias Ulmer [Fri, 14 Dec 2012 12:21:34 +0000 (13:21 +0100)]
Explicitly load e2util module in e2lib

It's a C module, so it does not share the strict loading requirements of
the new Lua modules. Load it explicitly, otherwise many functions in
e2lib will terminate with a backtrace unless another module loaded
e2util before.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove store-run-log server
Tobias Ulmer [Fri, 14 Dec 2012 12:14:55 +0000 (13:14 +0100)]
Remove store-run-log server

This was presumably used to log e2 command usage internally to ease
debugging in the early stage of e2factory. It's not needed anymore.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove e2-build-numbers command.
Tobias Ulmer [Fri, 14 Dec 2012 11:58:45 +0000 (12:58 +0100)]
Remove e2-build-numbers command.

This tool has not been in use for years. So now is the time to remove
it.  For backwards compatibility, the symlink is still installed, and a
small replacement tool prints out an error message, should anyone try to
use it.

The server component can go away as well.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agorepair bomb() calls
Tobias Ulmer [Thu, 13 Dec 2012 18:55:18 +0000 (19:55 +0100)]
repair bomb() calls

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoPartial rewrite of e2-new-source
Tobias Ulmer [Thu, 13 Dec 2012 18:36:58 +0000 (19:36 +0100)]
Partial rewrite of e2-new-source

Lots of bug fixes and improved error messages.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoInstall digest module
Tobias Ulmer [Thu, 13 Dec 2012 18:34:32 +0000 (19:34 +0100)]
Install digest module

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd digest, a message digest handling module.
Tobias Ulmer [Thu, 13 Dec 2012 18:26:11 +0000 (19:26 +0100)]
Add digest, a message digest handling module.

Digest allows creation, verification, computation, parsing and writing
message digest as created and read by sha1sum and similar programs.
Currently MD5 support is incomplete (need MD5 module first).

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd e2lib.join(), a function that joins path components
Tobias Ulmer [Thu, 13 Dec 2012 18:24:34 +0000 (19:24 +0100)]
Add e2lib.join(), a function that joins path components

Inspired by Python's os.path.join

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoFix typos
Tobias Ulmer [Thu, 13 Dec 2012 18:24:04 +0000 (19:24 +0100)]
Fix typos

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd module descriptions and fix small ldoc errors
Tobias Ulmer [Wed, 12 Dec 2012 01:12:35 +0000 (02:12 +0100)]
Add module descriptions and fix small ldoc errors

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoGenerate developer docs with our local ldoc
Tobias Ulmer [Wed, 12 Dec 2012 00:47:56 +0000 (01:47 +0100)]
Generate developer docs with our local ldoc

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoImport luafilesystem 1.6.2
Tobias Ulmer [Thu, 6 Dec 2012 11:41:36 +0000 (12:41 +0100)]
Import luafilesystem 1.6.2

https://github.com/downloads/keplerproject/luafilesystem/luafilesystem-1.6.2.tar.gz

12 years agoImport Penlight, a dependency of LDoc
Tobias Ulmer [Wed, 5 Dec 2012 18:31:21 +0000 (19:31 +0100)]
Import Penlight, a dependency of LDoc

https://github.com/stevedonovan/Penlight/
git ref: b8e56fffb6 tag: 1.0.2

12 years agoImport LDoc 1.2.0
Tobias Ulmer [Wed, 5 Dec 2012 18:26:57 +0000 (19:26 +0100)]
Import LDoc 1.2.0

https://github.com/stevedonovan/LDoc/
git ref: 9bf51e3294 tag: 1.2.0

12 years agoClean up pathname operations
Tobias Ulmer [Wed, 28 Nov 2012 17:31:06 +0000 (18:31 +0100)]
Clean up pathname operations

* document dirname() in luadoc style
* document basename() in luadoc style. Drop the optional extension
  stripping capability, since nothing seems to use it.
* there are no users of splitpath(), drop it.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agolocal/e2-new-source.lua: check if file is already on the server
Fabian Godehardt [Mon, 17 Sep 2012 06:37:04 +0000 (08:37 +0200)]
local/e2-new-source.lua: check if file is already on the server

If we try to create a new source, using the "--files" parameter
then we now check if a file with the same name is already on the
server.

Before this patch, it was possible to overwrite an existing file
without any notifications.

e2-new-source aborts now if a file with the same name already exists.

Signed-off-by: Fabian Godehardt <fg@emlix.com>
12 years agolocal/e2-new-source.lua: make sure curl can return an error value on file download
Fabian Godehardt [Fri, 14 Sep 2012 08:15:44 +0000 (10:15 +0200)]
local/e2-new-source.lua: make sure curl can return an error value on file download

Signed-off-by: Fabian Godehardt <fg@emlix.com>
12 years agoe2build: abort if there is a non regular file in proj/init
Fabian Godehardt [Wed, 19 Sep 2012 05:34:35 +0000 (07:34 +0200)]
e2build: abort if there is a non regular file in proj/init

Signed-off-by: Fabian Godehardt <fg@emlix.com>
12 years agocvs: quote revision tag properly
Fabian Godehardt [Tue, 18 Sep 2012 12:10:14 +0000 (14:10 +0200)]
cvs: quote revision tag properly

Signed-off-by: Fabian Godehardt <fg@emlix.com>
12 years agoe2lib.tar() takes an argument vector
Fabian Godehardt [Tue, 18 Sep 2012 08:20:12 +0000 (10:20 +0200)]
e2lib.tar() takes an argument vector

Signed-off-by: Fabian Godehardt <fg@emlix.com>
12 years agosvn: use scm.generic_source_check()
Fabian Godehardt [Tue, 18 Sep 2012 07:59:47 +0000 (09:59 +0200)]
svn: use scm.generic_source_check()

Signed-off-by: Fabian Godehardt <fg@emlix.com>
12 years agobuild.sh: do not attempt to copy nonexisting files
Fabian Godehardt [Thu, 13 Sep 2012 12:16:18 +0000 (14:16 +0200)]
build.sh: do not attempt to copy nonexisting files

Signed-off-by: Fabian Godehardt <fg@emlix.com>
12 years agoe2build: fixup collect-project functionality
Fabian Godehardt [Thu, 13 Sep 2012 10:46:31 +0000 (12:46 +0200)]
e2build: fixup collect-project functionality

Signed-off-by: Fabian Godehardt <fg@emlix.com>
12 years agoe2tool: export e2tool.resultdir(), needed for collect-project
Fabian Godehardt [Thu, 13 Sep 2012 10:45:44 +0000 (12:45 +0200)]
e2tool: export e2tool.resultdir(), needed for collect-project

Signed-off-by: Fabian Godehardt <fg@emlix.com>
Conflicts:
local/e2tool.lua

12 years agoRemove global e2ssh tool
Tobias Ulmer [Mon, 26 Nov 2012 15:17:43 +0000 (16:17 +0100)]
Remove global e2ssh tool

Unused since dinosaurs roamed the earth. There are plenty of other ways
to add arguments to the default ssh tool.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agourl: lock url objects against unwanted members
Tobias Ulmer [Thu, 22 Nov 2012 15:20:30 +0000 (16:20 +0100)]
url: lock url objects against unwanted members

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agostrict: change API to support fields with nil values
Tobias Ulmer [Fri, 23 Nov 2012 17:44:28 +0000 (18:44 +0100)]
strict: change API to support fields with nil values

Previously, locked tables could not contain members set to nil,
since Lua is a bit confused about setting something to nil versus it not
existing at all.

Also all members are renamed fields, since "member" is an OO concept,
but the strict module doesn't particularily deal with objects.

The documentation was also slightly improved.

strict.unlock is now implemented, but still untested.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agonew-source: remove unhandled --checksum-file opt
Tobias Ulmer [Wed, 21 Nov 2012 16:57:16 +0000 (17:57 +0100)]
new-source: remove unhandled --checksum-file opt

While it could be specified, it didn't do anything in particular. While
there, also fix the documentation.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agofix broken error handling in transport.push_file()
Tobias Ulmer [Thu, 15 Nov 2012 13:42:20 +0000 (14:42 +0100)]
fix broken error handling in transport.push_file()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agocvs: improve error message and handle scp transports
Tobias Ulmer [Wed, 14 Nov 2012 18:22:54 +0000 (19:22 +0100)]
cvs: improve error message and handle scp transports

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agotransport: improve error message and logging
Tobias Ulmer [Wed, 14 Nov 2012 18:21:00 +0000 (19:21 +0100)]
transport: improve error message and logging

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoimprove error messages when creating git repos
Tobias Ulmer [Wed, 14 Nov 2012 18:17:37 +0000 (19:17 +0100)]
improve error messages when creating git repos

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoadd http/https support to verify_remote_fileid()
Tobias Ulmer [Fri, 9 Nov 2012 12:34:17 +0000 (13:34 +0100)]
add http/https support to verify_remote_fileid()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoadd http/https transport support to the git interface
Tobias Ulmer [Fri, 9 Nov 2012 10:52:23 +0000 (11:52 +0100)]
add http/https transport support to the git interface

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agouse the tools module instead of hardcoding chown
Tobias Ulmer [Thu, 8 Nov 2012 18:59:46 +0000 (19:59 +0100)]
use the tools module instead of hardcoding chown

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoreplace custom mv() with e2lib.mv(), fix error message
Tobias Ulmer [Thu, 1 Nov 2012 14:39:44 +0000 (15:39 +0100)]
replace custom mv() with e2lib.mv(), fix error message

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoe2lib.mv(): it's safer to pass arguments in a vector
Tobias Ulmer [Thu, 1 Nov 2012 14:37:59 +0000 (15:37 +0100)]
e2lib.mv(): it's safer to pass arguments in a vector

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoadd bzip2 to the required tools
Tobias Ulmer [Mon, 17 Sep 2012 12:09:44 +0000 (14:09 +0200)]
add bzip2 to the required tools

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove dead code from e2tool
Tobias Ulmer [Mon, 17 Sep 2012 12:03:36 +0000 (14:03 +0200)]
Remove dead code from e2tool

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoe2lib: remove unused compute_hash()
Tobias Ulmer [Mon, 17 Sep 2012 10:29:38 +0000 (12:29 +0200)]
e2lib: remove unused compute_hash()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoe2build build_process: remove prio field, unused
Tobias Ulmer [Mon, 17 Sep 2012 10:22:13 +0000 (12:22 +0200)]
e2build build_process: remove prio field, unused

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoe2lib.directory: readable formatting
Tobias Ulmer [Mon, 17 Sep 2012 10:21:19 +0000 (12:21 +0200)]
e2lib.directory: readable formatting

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agogeneric/transport.lua: fixup curl support for http/https file transfer
Fabian Godehardt [Thu, 13 Sep 2012 10:42:51 +0000 (12:42 +0200)]
generic/transport.lua: fixup curl support for http/https file transfer

Signed-off-by: Fabian Godehardt <fg@emlix.com>
12 years agoRemove e2-su and e2-root
Tobias Ulmer [Mon, 10 Sep 2012 17:56:19 +0000 (19:56 +0200)]
Remove e2-su and e2-root

e2-su was used up until e2-2.2pre13 (never released to the public). It
was the only user of e2-root.lua.

e2factory until e2factory-2.3.12 will still check for the presence of
e2-su, therefore supply a small shellscript that makes previous versions
happy.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoe2-root does not need to be executable, trim cleanup files
Tobias Ulmer [Fri, 7 Sep 2012 09:27:27 +0000 (11:27 +0200)]
e2-root does not need to be executable, trim cleanup files

e2-root is called via e2, does not need to be an executable script. It's
not an entry point into e2factory.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoDon't "clean" the internal Lua directory, clean the build results
Tobias Ulmer [Fri, 7 Sep 2012 09:26:01 +0000 (11:26 +0200)]
Don't "clean" the internal Lua directory, clean the build results

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agorename e2-root.lua.in to e2-root.lua
Tobias Ulmer [Thu, 6 Sep 2012 15:37:42 +0000 (17:37 +0200)]
rename e2-root.lua.in to e2-root.lua

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove outdated lua.tar.gz documentation part
Tobias Ulmer [Thu, 6 Sep 2012 15:28:43 +0000 (17:28 +0200)]
Remove outdated lua.tar.gz documentation part

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoChange the way we build Lua
Tobias Ulmer [Thu, 6 Sep 2012 15:27:15 +0000 (17:27 +0200)]
Change the way we build Lua

We're now using the internal version of Lua, and set LUA_PATH correctly.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoNothing to replace e2.lua.in anymore, move to its real name
Tobias Ulmer [Thu, 6 Sep 2012 10:58:47 +0000 (12:58 +0200)]
Nothing to replace e2.lua.in anymore, move to its real name

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoDo not set package.(c)path, lua does that for us
Tobias Ulmer [Thu, 6 Sep 2012 10:57:07 +0000 (12:57 +0200)]
Do not set package.(c)path, lua does that for us

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAllow adjustment LUA_PATH_DEFAULT and LUA_CPATH_DEFAULT
Tobias Ulmer [Thu, 6 Sep 2012 10:50:31 +0000 (12:50 +0200)]
Allow adjustment LUA_PATH_DEFAULT and LUA_CPATH_DEFAULT

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agovanilla lua-5.1.3.tar.gz
Tobias Ulmer [Wed, 5 Sep 2012 14:06:04 +0000 (16:06 +0200)]
vanilla lua-5.1.3.tar.gz

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoLock all modules and plugins with strict.lock()
Tobias Ulmer [Tue, 4 Sep 2012 12:11:07 +0000 (14:11 +0200)]
Lock all modules and plugins with strict.lock()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoUse strict module, but allow plugins
Tobias Ulmer [Tue, 4 Sep 2012 12:07:58 +0000 (14:07 +0200)]
Use strict module, but allow plugins

Plugins needs permission to create a plugin_descriptor table in the
global environment. Permit this until we have extracted the necessary
information.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoUse strict module, but still allow for extending the scm interface
Tobias Ulmer [Tue, 4 Sep 2012 12:07:01 +0000 (14:07 +0200)]
Use strict module, but still allow for extending the scm interface

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