dcs
dcs copied to clipboard
allow to search for a source package containing a specific filename/path
Hi,
it would be useful if instead of searching the content of files in source packages, one could search for all source packages that contain a file with a specific name or a certain path. It would then be possible to list source packages which, for example include a CMakeLists\.txt
or a debian/.+\.doc-base.*
(notice the usage of a regex)
I came across this problem again. This time I had an ocaml backtrace which said:
Raised at file "pervasives.ml", line 20, characters 22-33
It would be great if codesearch could answer the question: which package contains pervasives.ml
and under which path there can it be found?
And even with the knowledge that the file is included in the source package ocaml
, that source package is huge and I'd like to avoid downloading it and running find | grep pervasives.ml
manually to figure out the path.
Note to self: without codesearch this can already be done via:
apt-file update -a source
apt-file search -a source pervasives.ml
Another workaround that I've used is to search for a string that you know is (or is likely to be) in the target file. E.g. searching for Copyright path:/pervasives.ml
works for your example. Searching for a regexp of .
with a path argument throws an error that the search is too short.