| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Now that 'bst track' is obsolete, change guidance to refer to the
replacement 'bst source track' instead.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of redundantly documenting "directory" configuration option in
each source plugin, refer to the built-in functionality documentation of
the Source class.
* source.py: Add anchor for built-in functionality.
* sources/plugins/*.py: Remove directory config option, and add reference to
Source's built-in functionality.
Fixes #713.
|
|
|
|
|
| |
Remove two uses of ExitStack that aren't necessary and make the code
a little harder to follow.
|
| |
|
|
|
|
| |
Issue #353
|
|
|
|
| |
Fixes #424
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Now the page titles are declared in plugins, allowing for
a more descriptive ToC
o Makefile and plugin.rsttemplate updated to not produce the title,
to no longer use `:orphan:` for plugin pages, and to ignore any
private modules in the plugin directories.
o Interestingly, now the docs will fail to build if you add
a new plugin and forget to add it to the documentation.
|
|
|
|
|
| |
Plugins set their attributes in configure(), because the
constructor is not public API.
|
| |
|
|
|
|
|
| |
All source plugins respond to the 'directory' key, so add the doc for it
to those that didn't have it.
|
|
|
|
|
| |
It's not required to raise SourceError() manually when calling
utils.get_host_tool().
|
| |
|
| |
|
|
|
|
| |
should be normalized.
|
|
|
|
|
|
|
|
| |
When extracting files from a base directory, we are normalizing
the TarInfo file names so we need to also normalize the link names
in the case of links and symlinks.
Fixes issue #155
|
|
|
|
|
|
|
| |
This makes buildstream behave the same way with tarballs which
were encoded with a leading `.` and those encoded without one.
This fixes issue #145
|
|
|
|
|
|
|
|
|
|
|
| |
The new DownloadableFileSource will be used as a base for all sources
which just download a file to use as source.
The existing TarSource just keeps the code responsible to manage a Tar
archive.
This will help implemeting other types of single file downloaded
sources, for example Zip archives.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To extract the full tarball, one should set base-dir to an
empty string.
By ignoring the leading '.' in any archive, we make the 'base-dir'
API more predictable and reliable - the default behavior of '*' is
to pickup the first directory in the tarball (usually source code
tarballs are encoded with one leading directory) - in the off chance
that a source tarball has a leading '.' in it; that would cause
the 'base-dir' default '*' glob to extract the whole thing.
It seems undesirable to behave differently depending on whether
a tarball was encoded with, or without a leading '.'
|
| |
|
| |
|
|
|
|
|
| |
We moved the code originally here into utils.py, now use the
code in utils.py.
|
|
|
|
|
|
|
|
| |
The 'base-dir' setting affects how the resulting artifact is produced.
BuildElements will probably not build at all if the 'base-dir' is
incorrect. However, an ImportElement importing a tar source will just
import the wrong contents if 'base-dir' is wrong, which only affects
the builds *after* the import.
|
|
|
|
|
| |
This is not documented to be a subclass of urllib.error.URLError
so it should be handled separately.
|
|
|
|
|
|
|
|
|
| |
Not all tarballs contain entries for leading path components of
files which exist in the archive, but we need the globbing checks
to return matches for directory components regardless.
This patch adds some logic to traverse the tarball paths with
added directory components where the tarball is missing them.
|
|
|
|
|
|
|
|
| |
This is to address issue 25 by allowing some flexibility of what
directory should be extracted from the source tarball, it will
default to '*' which will match the first directory found at the
root of the tarball, which will work for the vast majority of
standard source code release tarballs.
|
|
|
|
|
| |
So that it's readable without the horizontal scrollbar
(which remains, but only for the example sha256sum that is there)
|
|
|
|
|
|
| |
o Removed the unused `self.tracking` variable
o Added some context to raised SourceErrors
|
|
This is for pulling tar files from URLs and staging them by unpacking
them into the staging area.
|