mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-02 15:04:18 -06:00
dont space out name and hash
This commit is contained in:
parent
882143dbd3
commit
8eb69db10f
1 changed files with 4 additions and 1 deletions
|
@ -63,7 +63,10 @@ proc hasNarinfo*(cache: string, path: string): tuple[exists:bool, narinfo:string
|
||||||
proc prettyDerivation(path: string): BbString =
|
proc prettyDerivation(path: string): BbString =
|
||||||
let drv = path.toDerivation()
|
let drv = path.toDerivation()
|
||||||
const maxLen = 40
|
const maxLen = 40
|
||||||
result.add drv.name.trunc(maxLen).alignLeft(maxLen)
|
if drv.name.len < maxLen:
|
||||||
|
result.add drv.name
|
||||||
|
else:
|
||||||
|
result.add drv.name.trunc(maxLen)
|
||||||
result.add " "
|
result.add " "
|
||||||
result.add drv.hash.bb("faint")
|
result.add drv.hash.bb("faint")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue