lp:~lool/linaro-image-tools/missing-sbin

Created by Loïc Minier and last modified
Get this branch:
bzr branch lp:~lool/linaro-image-tools/missing-sbin
Only Loïc Minier can upload to this branch. If you are Loïc Minier please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Loïc Minier
Project:
Linaro Image Tools
Status:
Merged

Recent revisions

311. By Loïc Minier

Expose default path of sanitize_path() as to help testing and add tests for
sanitize_path().

310. By Loïc Minier

Merge lp:linaro-image-tools; update cmd_runner import path.

309. By Loïc Minier

Use cmd_runner instead of subprocess, this ensures that a sane PATH is used.

308. By Loïc Minier

Sanitize path with cmd_runner's helper rather than reinventing it.

307. By Loïc Minier

Bug: find_command() was setting os.environ['PATH'] to ":/bin:usr/bin" if unset,
but this means that the current directory was searched first unconditionally
even when calling linaro-image-tools system-wide. Later logic in
find_command() correctly prepends the current directory when needed, so it was
useless and incorrect to include . in the PATH by default.

306. By Loïc Minier

Factor handling of unset PATH and default PATH in the common case.

305. By Loïc Minier

Fix handling of empty PATH; this actually means that the current directory
should be searched, and not that PATH is empty.

304. By Loïc Minier

Actually make sure that any of the directories typically found in the PATH are
added if missing; this will ensure that commands which we call and which are
typically in /usr/bin are also in the PATH, and that commands from
linaro-image-tools which might have been installed under /usr/local are also in
the PATH.

303. By Loïc Minier

Move PATH sanitization to a function and call that from Popen.__init__(); note
that:
- this regresses the hwpack testsuite as it uses subprocess.Popen directly, so
  that a broken PATH might not be fixed up
- due to the media_create code doing a os.environ.copy() before os.environ
  being sanitized, this requires sanitizing both os.environ and the env copy
  passed to Popen()

302. By Loïc Minier

Set os.environ['PATH'] if unset or empty; append /sbin to it if missing;
LP: #709517.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:linaro-image-tools/11.11
This branch contains Public information 
Everyone can see this information.

Subscribers