dcs icon indicating copy to clipboard operation
dcs copied to clipboard

allow to search for a source package containing a specific filename/path

Open josch opened this issue 10 years ago • 3 comments

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)

josch avatar Dec 12 '14 19:12 josch

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.

josch avatar Mar 20 '15 17:03 josch

Note to self: without codesearch this can already be done via:

apt-file update -a source
apt-file search -a source pervasives.ml

josch avatar Jul 09 '15 11:07 josch

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.

mtmiller avatar Sep 02 '15 11:09 mtmiller