diff options
author | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2020-01-16 15:25:17 +0100 |
---|---|---|
committer | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2020-01-16 15:25:17 +0100 |
commit | abc4a2e11c94fd948c684d678701cc90bc7a7ab6 (patch) | |
tree | e36dcbc5e5cf210700d52cfc8bdabc9a094ee50e /cmd/debos/debos.go | |
parent | 84c12c16ed094874a058bac6aaf70dfa25ace1d6 (diff) | |
parent | fef5746ee329eb560d740132895ed29a44e44d10 (diff) |
Update upstream source from tag 'upstream/1.0.0+git20191223.292995b'
Update to upstream version '1.0.0+git20191223.292995b'
with Debian dir f7f3a5ade924e6cb45402aac0b363e5f82aa5ae4
Diffstat (limited to 'cmd/debos/debos.go')
-rw-r--r-- | cmd/debos/debos.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/debos/debos.go b/cmd/debos/debos.go index 611162a..0f3edc9 100644 --- a/cmd/debos/debos.go +++ b/cmd/debos/debos.go @@ -72,6 +72,7 @@ func main() { Verbose bool `short:"v" long:"verbose" description:"Verbose output"` PrintRecipe bool `long:"print-recipe" description:"Print final recipe"` DryRun bool `long:"dry-run" description:"Compose final recipe to build but without any real work started"` + DisableFakeMachine bool `long:"disable-fakemachine" description:"Do not use fakemachine."` } // These are the environment variables that will be detected on the @@ -143,7 +144,7 @@ func main() { /* If fakemachine is supported the outer fake machine will never use the * scratchdir, so just set it to /scratch as a dummy to prevent the * outer debos creating a temporary direction */ - if fakemachine.InMachine() || fakemachine.Supported() { + if !options.DisableFakeMachine && (fakemachine.InMachine() || fakemachine.Supported()) { context.Scratchdir = "/scratch" } else { log.Printf("fakemachine not supported, running on the host!") @@ -212,7 +213,7 @@ func main() { return } - if !fakemachine.InMachine() && fakemachine.Supported() { + if !options.DisableFakeMachine && !fakemachine.InMachine() && fakemachine.Supported() { m := fakemachine.NewMachine() var args []string |