New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
josch opened this Issue Dec 12, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@josch

josch commented Dec 12, 2014

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

This comment has been minimized.

Show comment
Hide comment
@josch

josch Mar 20, 2015

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 commented Mar 20, 2015

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

This comment has been minimized.

Show comment
Hide comment
@josch

josch Jul 9, 2015

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

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

josch commented Jul 9, 2015

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

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

This comment has been minimized.

Show comment
Hide comment
@mtmiller

mtmiller Sep 2, 2015

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 commented Sep 2, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment