dont space out name and hash

This commit is contained in:
Daylin Morgan 2025-01-30 15:29:48 -06:00
parent 882143dbd3
commit 8eb69db10f
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -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")