]> git.e2factory.org Git - e2factory.git/log
e2factory.git
12 years agomanpages: bug-fixes
Thomas Brinker [Mon, 11 Mar 2013 12:56:09 +0000 (13:56 +0100)]
manpages: bug-fixes

12 years agocreate next changelog entry
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>
12 years agorelease e2factory-2.3.13rc4 e2factory-2.3.13rc4
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>
12 years agoRepair interrupt_hook() call from signal handler
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>
12 years agocreate next changelog entry
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>
12 years agorelease e2factory-2.3.13rc3 e2factory-2.3.13rc3
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>
12 years agoRespect $EDITOR
Tobias Ulmer [Thu, 7 Mar 2013 17:22:23 +0000 (18:22 +0100)]
Respect $EDITOR

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd git url support to git plugin
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>
12 years agoAdd http, https and svn url support to svn plugin
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>
12 years agoRevert "use the tools module instead of hardcoding chown"
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>
12 years agocreate next changelog entry
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>
12 years agorelease e2factory-2.3.13rc2 e2factory-2.3.13rc2
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>
12 years agoAdd XZ support for sources
Tobias Ulmer [Mon, 4 Mar 2013 19:04:02 +0000 (20:04 +0100)]
Add XZ support for sources

This depends on a tar version in the chroot that supports xz archives.

The code has been restructured such that we don't play guessing games
based on the magic number in the file header anmore, and just go by
extension. Also, since all this extraction business is only relevant to
file sources, move it into the files plugin instead of cluttering e2lib.

To be clear, this change removes the questionable feature of detecting
that a .tar.bz2 tarball was really a .tar.gz and will instead return an
error message by he way of tar failing.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoCleanup templates, fix formating, add modelines
Tobias Ulmer [Fri, 1 Mar 2013 15:57:27 +0000 (16:57 +0100)]
Cleanup templates, fix formating, add modelines

Also remove a few lesser used keys, they can be looked up in the manual.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove outdated comment
Tobias Ulmer [Fri, 1 Mar 2013 15:26:15 +0000 (16:26 +0100)]
Remove outdated comment

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove outdated bits about the documentation
Tobias Ulmer [Fri, 1 Mar 2013 15:14:21 +0000 (16:14 +0100)]
Remove outdated bits about the documentation

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoCleanup release process information a bit.
Tobias Ulmer [Fri, 1 Mar 2013 15:08:05 +0000 (16:08 +0100)]
Cleanup release process information a bit.

These days it's pretty much streamlined into release.sh

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoPolish the extensions README a bit
Tobias Ulmer [Fri, 1 Mar 2013 15:00:32 +0000 (16:00 +0100)]
Polish the extensions README a bit

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoPoint to an existing manual page
Tobias Ulmer [Fri, 1 Mar 2013 14:50:18 +0000 (15:50 +0100)]
Point to an existing manual page

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoOn glibc, strerror_r does not do what you think it does...
Tobias Ulmer [Fri, 1 Mar 2013 14:18:52 +0000 (15:18 +0100)]
On glibc, strerror_r does not do what you think it does...

Fixes empty error messages in various places.

glibc will use the GNU version of strerror_r by default, which does not
fill the buffer but rather uses it as a temporary storage space. It
returns a pointer to the error string, which was never used.

Since e2 is not multithreaded, replace it with the simpler strerror()
and remove pointless casts.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoExport licenceid() function
Tobias Ulmer [Thu, 28 Feb 2013 19:45:37 +0000 (20:45 +0100)]
Export licenceid() function

Required by files plugin.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoMove check_licence() so it is declared on use
Tobias Ulmer [Thu, 28 Feb 2013 19:42:01 +0000 (20:42 +0100)]
Move check_licence() so it is declared on use

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agocreate next changelog entry
Tobias Ulmer [Thu, 28 Feb 2013 18:13:03 +0000 (19:13 +0100)]
create next changelog entry

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agorelease e2factory-2.3.13rc1 e2factory-2.3.13rc1
Tobias Ulmer [Thu, 28 Feb 2013 18:13:03 +0000 (19:13 +0100)]
release e2factory-2.3.13rc1

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove trailing slash from git urls, assembla.com can't handle it
Tobias Ulmer [Tue, 26 Feb 2013 14:23:40 +0000 (15:23 +0100)]
Remove trailing slash from git urls, assembla.com can't handle it

While there, make generic_git.git_clone_url1() local and clean up a bit.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoTouch up developer documentation and code little
Tobias Ulmer [Fri, 22 Feb 2013 18:11:59 +0000 (19:11 +0100)]
Touch up developer documentation and code little

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoDocument more info fields, clean umask and local_init a bit
Tobias Ulmer [Thu, 21 Feb 2013 16:49:11 +0000 (17:49 +0100)]
Document more info fields, clean umask and local_init a bit

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoReturn false instead of nil in locate_project_root()
Tobias Ulmer [Thu, 21 Feb 2013 12:23:01 +0000 (13:23 +0100)]
Return false instead of nil in locate_project_root()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove outdated comments
Tobias Ulmer [Wed, 20 Feb 2013 18:57:40 +0000 (19:57 +0100)]
Remove outdated comments

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoDocument info.local_template_path field
Tobias Ulmer [Wed, 20 Feb 2013 18:38:52 +0000 (19:38 +0100)]
Document info.local_template_path field

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoIntroduce e2-cf to source and result groups...
Tobias Ulmer [Wed, 20 Feb 2013 16:46:52 +0000 (17:46 +0100)]
Introduce e2-cf to source and result groups...

Add a large dose of error checking.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove slashToDot() and export two replacements
Tobias Ulmer [Tue, 19 Feb 2013 20:04:41 +0000 (21:04 +0100)]
Remove slashToDot() and export two replacements

Results/source names can now reliably be converted into a file system
path or into e2factory group notation using
e2tool.src_res_name_to_path() and e2tool.src_res_path_to_name()

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoClarify and limit valid src/res paths and names
Tobias Ulmer [Mon, 18 Feb 2013 19:08:58 +0000 (20:08 +0100)]
Clarify and limit valid src/res paths and names

Backwards compatibility change ahead:

Disallow result and source pathnames that contain a dot (.) as this is
an endless source of pain. Dots may now only be used to group results
and sources. This makes reliable translation from file paths to result
groups and back possible.

Rename the functions doing the validation, add documentation, and make
them available outside of the e2tool module. Improve error messages.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoDon't limit slashToDot() to 100 replacements
Tobias Ulmer [Mon, 18 Feb 2013 16:39:59 +0000 (17:39 +0100)]
Don't limit slashToDot() to 100 replacements

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoRemove generatePath(), drop postfix param in resultdir() etc
Tobias Ulmer [Mon, 18 Feb 2013 16:22:18 +0000 (17:22 +0100)]
Remove generatePath(), drop postfix param in resultdir() etc

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoSwitch --help over to display the man page of the tool
Tobias Ulmer [Fri, 15 Feb 2013 16:38:08 +0000 (17:38 +0100)]
Switch --help over to display the man page of the tool

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd basic ldoc comments, just to get an overview
Tobias Ulmer [Fri, 15 Feb 2013 16:19:17 +0000 (17:19 +0100)]
Add basic ldoc comments, just to get an overview

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoInstall e2 and e2-help man pages
Tobias Ulmer [Thu, 14 Feb 2013 18:44:58 +0000 (19:44 +0100)]
Install e2 and e2-help man pages

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd e2-help man page
Tobias Ulmer [Thu, 14 Feb 2013 18:44:17 +0000 (19:44 +0100)]
Add e2-help man page

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoInstall e2-help as a local tool
Tobias Ulmer [Thu, 14 Feb 2013 18:43:27 +0000 (19:43 +0100)]
Install e2-help as a local tool

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd e2-help, makes it easier to view e2 documentation
Tobias Ulmer [Thu, 14 Feb 2013 18:41:14 +0000 (19:41 +0100)]
Add e2-help, makes it easier to view e2 documentation

Signed-off-by: Tobias Ulmer <tu@emlix.com>
12 years agoAdd manpage for e2
Tobias Ulmer [Thu, 14 Feb 2013 18:37:35 +0000 (19:37 +0100)]
Add manpage for e2

Signed-off-by: Tobias Ulmer <tu@emlix.com>
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