Skip to content

Commit

Permalink
distros.foreignDeps made public (#18830)
Browse files Browse the repository at this point in the history
* Deprecate distros.echoForeignDeps

* Deprecate distros.echoForeignDeps

* #18830 (comment)

* #18830 (comment)
  • Loading branch information
juancarlospaco authored Sep 10, 2021
1 parent a896f9f commit 0ef8305
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@
- Deprecated `sequtils.delete` and added an overload taking a `Slice` that raises a defect
if the slice is out of bounds, likewise with `strutils.delete`.


## Language changes

- The `cstring` doesn't support `[]=` operator in JS backend.
Expand Down
8 changes: 4 additions & 4 deletions lib/pure/distros.nim
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
##
## See `packaging <packaging.html>`_ for hints on distributing Nim using OS packages.

from strutils import contains, toLowerAscii
from std/strutils import contains, toLowerAscii

when not defined(nimscript):
from osproc import execProcess
from os import existsEnv
from std/osproc import execProcess
from std/os import existsEnv

type
Distribution* {.pure.} = enum ## the list of known distributions
Expand Down Expand Up @@ -211,7 +211,7 @@ template detectOs*(d: untyped): bool =
detectOsImpl(Distribution.d)

when not defined(nimble):
var foreignDeps: seq[string] = @[]
var foreignDeps*: seq[string] = @[] ## Registered foreign deps.

proc foreignCmd*(cmd: string; requiresSudo = false) =
## Registers a foreign command to the internal list of commands
Expand Down

0 comments on commit 0ef8305

Please sign in to comment.