summaryrefslogtreecommitdiff
path: root/buildstream/plugins/sources/local.py
Commit message (Collapse)AuthorAgeFilesLines
* local.py: Implement _get_local_path()Jürg Billeter2018-11-271-0/+3
|
* sources: Don't redundantly document directory configurationChandan Singh2018-10-251-3/+3
| | | | | | | | | | | | 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.
* Fix spelling of it's and itsRichard Dale2018-10-161-1/+1
|
* buildstream/plugins/sources/local.py: Make staging deterministic.Valentin David2018-08-121-1/+25
| | | | | | | | | | | | | | Instead of copying metadata on files staged by local, we manually set mode to 0755 or 0644 depending on whether user execution was enabled on source file. This makes file modes deterministic independently on the way source was distributed. Non-deterministic mode copying all metadata can still be enabled by disable 'deterministic' Boolean configuration on the plugin. Fixes #527.
* local plugin: validate project pathsTiago Gomes2018-08-021-7/+5
| | | | | | The autotools example had to be copied over inside of the junction example, as referring to a path outside of the project directory is now disallowed.
* Remove shebangs from python filesGökçen Nurlu2018-06-191-1/+0
| | | | Fixes #424
* doc: Added plugins as ToC elements instead of orphaned linksTristan Van Berkom2018-06-091-1/+3
| | | | | | | | | | | | 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: Disable attribute-defined-outside-init pylint errorTristan Van Berkom2018-04-201-0/+1
| | | | | Plugins set their attributes in configure(), because the constructor is not public API.
* Source plugins: Implement load_ref() in all source pluginsTristan Van Berkom2018-03-201-0/+3
|
* plugins/sources/local.py: Consider symbolic link target in cache key.Tristan Van Berkom2018-01-101-1/+2
| | | | | | | | Technically this breaks cache keys for the local source, but as this comes in a branch which fixes local source cache keys to be stable (they were random before this branch), we wont bother with considering this enhancement a separate API break, the cache key breakage was inescapable anyway.
* plugins/sources/local.py: pragma nocover on unreachable codeTristan Van Berkom2018-01-021-3/+3
| | | | | | | | The local plugin is always Consistency.CACHED, this means that fetch(), set_ref() and get_ref() methods will never be called. Instead of omitting them, just "pragma: nocover" on the `pass` statements, making our coverage report more realistic.
* plugins/sources/local.py: Cache the local element's unique keyAntoine Wacheux2017-12-131-10/+18
| | | | | This avoid multiple file system traversal when the key is requested multiple times.
* Switch old-style string formattings to new '.format()'Gökçen Nurlu2017-11-171-1/+1
|
* refactoring: Made Project option privateTristan Van Berkom2017-11-061-3/+1
| | | | | | | | | | | | | | This required adding two new APIs to make up for it on the Source o get_project_directory() Added here because elements should not be accessing external resources, Sources needed for local files and GPG keys and such o translate_url() Used by sources to mish-mash the project aliases and create real urls.
* Add source plugin node validationsTristan Maat2017-09-141-0/+2
|
* local.py source plugin: Use utils.sha256sum()Tristan Van Berkom2017-09-121-10/+6
|
* local.py source plugin: Fixed to support symlinksTristan Van Berkom2017-07-171-0/+2
| | | | | This was otherwise throwing an exception when trying the create the checksum for a symlink.
* local.py source plugin: Make sha256sums safe for directories in the manifestTristan Van Berkom2017-04-031-0/+5
|
* local.py source plugin: Adapt to new get_consistency() APITristan Van Berkom2017-01-191-3/+3
|
* local.py: Updated for new source APITristan Van Berkom2017-01-181-3/+6
|
* local.py: Fixed comment which was incorrectTristan Van Berkom2017-01-131-1/+3
|
* local.py: Use timed activity context managerTristan Van Berkom2017-01-121-5/+6
|
* local.py source plugin: Implement consistent()Tristan Van Berkom2017-01-091-0/+3
|
* local.py source plugin: Now refresh returns booleanTristan Van Berkom2017-01-071-1/+1
|
* local.py source plugin: Use Plugin node parsing utilitiesTristan Van Berkom2017-01-071-1/+1
|
* Simplify exceptions a bitTristan Van Berkom2016-12-181-2/+2
| | | | | | | | | | | Instead of declaring per operation exceptions, like PreflightError and FetchError etc, just declare exceptions per domain. Replaced the former errors with SourceError for Source implementations and ElementError for element implementations. The core will be able to report errors differently depending on what they asked given plugins to do, and handle a reduced set of exceptions.
* local source plugin: small amendment to the user docs.Tristan Van Berkom2016-12-181-0/+3
| | | | Specify the common 'directory' attribute
* Adding first iteration of local pluginTristan Van Berkom2016-12-151-0/+93