Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C cowdancer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Debian pbuilder Team
  • cowdancer
  • Merge requests
  • !2

Propagate settings to the next pbuilderrc config file

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Richard Hansen requested to merge rhansen/cowdancer:propagate-settings into master May 24, 2020
  • Overview 1
  • Commits 3
  • Pipelines 0
  • Changes 5

When reading settings from a pbuilderrc file, initialize the environment with the settings obtained so far. This matches the behavior of pbuilder and makes it possible for the user's ~/.pbuilderrc to depend on values set in /usr/share/pbuilder/pbuilderrc and /etc/pbuilderrc.

Alternatively, all files could be sourced in a single bash invocation like this:

const char *cmd =
    "env bash -c 'set -e"
    "; . /usr/share/pbuilder/pbuilderrc"
    "; . /etc/pbuilderrc"
    "; . ~/.pbuilderrc"
    "; set'";

but this approach doesn't support the --configfile flag when intermixed with other flags.

Closes: #579506

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: propagate-settings