Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ all : all-no-mo mo translated-man
all-no-mo : sync-available/sync-available \
man/grep-dctrl.1 \
$(exe)
aliases = grep-status grep-available grep-aptavail grep-debtags
aliases = grep-status grep-available grep-aptavail grep-debtags grep-sources

install :
$(INSTALL_DIR) $(DESTDIR)$(sbindir)
Expand Down
4 changes: 4 additions & 0 deletions grep-dctrl/grep-dctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,10 @@ int main (int argc, char * argv[])
fname = (struct ifile){
.mode = m_exec,
.s = "debtags dumpavail" };
} else if (strcmp(argv0, "grep-sources") == 0) {
fname = (struct ifile){
.mode = m_exec,
.s = "apt-get indextargets --format '$(FILENAME)' 'Created-By: Sources' | xargs /usr/lib/apt/apt-helper cat-file" };
} else {
message(L_FATAL, 0,
_("executable name '%s' is not recognised"),
Expand Down
7 changes: 5 additions & 2 deletions man/grep-dctrl.1.cp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ given a useful input file.
The programs
.BR grep\-available ,
.BR grep\-status ,
.B grep\-aptavail
.B grep\-aptavail,
.B grep\-sources,
and
.B grep\-debtags
are aliases of (actually, symbolic links to)
Expand All @@ -62,7 +63,9 @@ and
.I status
files, the
.B apt\-cache dumpavail
output and the
output,
.B all APT source repositories,
and the
.B debtags dumpavail
output, respectively.
.PP
Expand Down