Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
describe
1 parent eacd9ee commit cbeeec3Copy full SHA for cbeeec3
apt-cyg
@@ -2179,15 +2179,15 @@ function apt-cyg-find ()
2179
2180
function apt-cyg-describe ()
2181
{
2182
- local pkg
+ local pkg exact
2183
2184
checkpackages "$@"
2185
findworkspace
2186
getsetup
2187
for pkg do
2188
- echo ""
2189
- awk -v query="$pkg" -v IGNORECASE="$ignore_case" \
2190
- 'BEGIN{RS="\n\n@ "; FS="\n"; ORS="\n"} {if ($1 ~ query) {print $0 "\n"}}' \
+ exact="$(grep -q "@ $pkg$" setup.ini&&echo 1||echo "")"
+ awk -v query="${exact:+^}$pkg${exact:+$}" -v IGNORECASE="$ignore_case" \
+ 'BEGIN{RS="\n\n@ "; FS="\n"} ($1 ~ query){print "@ "$0"\n"}' \
2191
setup.ini
2192
done
2193
}
0 commit comments