Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • slapos slapos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 129
    • Merge requests 129
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slaposslapos
  • Merge requests
  • !129

random-recipe: add option create-once to prevent storage file deletion by buildout

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Alain Takoudjou requested to merge alain into master Jan 19, 2017
  • Overview 14
  • Commits 1
  • Pipelines 0
  • Changes 1

It sometimes happend that buildout unistall/install the section with this recipe, which remore storage_path file and recreate it. In most of cases this is not wanted because the recipe is used to generate password, so that password will change when this happend. To prevent buildout to remove storage_path, I introduced a new option 'create-once' which, when set to True (the default value) will not let buildout play with storage_path file by returning None in install recipe. Also install won't remove the file if the size is not 0.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: alain
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7