[pkg-go] Bug#874779: ratt: Use of /var/lib/apt/lists internals

Shengjing Zhu i at zhsj.me
Sat Sep 9 17:31:12 UTC 2017


> your package appears to be relying on the internal layout of /var/lib/apt/lists
> and the location of that directory (which is configurable), as it matches the
> following regular expression (and a quick check did not rule out a false positive):
>
>     /var/lib/apt/lists/.*(Packages|Sources)
>
> For the matches found, you can have a quick look at:
>
>     https://codesearch.debian.net/search?q=%2Fvar%2Flib%2Fapt%2Flists%2F.*%28Packages%7CSources%29+package%3Aratt
>

These codes are in an `else` branch, which means ratt tries `apt-get
indextargets` first and then fallbacks to /var/lib/apt/lists/.
See https://github.com/Debian/ratt/blob/b3977a68b0bc0767f23ea5695aaff7ddb0275af9/ratt.go#L250


-- 
Best regards,
Shengjing Zhu



More information about the Pkg-go-maintainers mailing list