iankelling.org
/
git
/
distro-functions
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
da54fb3
)
fix pfile
author
Ian Kelling
<iank@fsf.org>
Wed, 15 Dec 2021 19:34:31 +0000
(14:34 -0500)
committer
Ian Kelling
<iank@fsf.org>
Wed, 15 Dec 2021 19:34:31 +0000
(14:34 -0500)
src/package-manager-abstractions
patch
|
blob
|
history
diff --git
a/src/package-manager-abstractions
b/src/package-manager-abstractions
index 0bd53894536a2ab869900c93742fe1a4c337af22..e56ec48f1cd12e8c04000c99d898e76fc5b1b4db 100644
(file)
--- a/
src/package-manager-abstractions
+++ b/
src/package-manager-abstractions
@@
-201,9
+201,9
@@
EOF
}
pfile() {
# -a = search all repos
}
pfile() {
# -a = search all repos
- local arg
+ local
-a
arg
if [[ $1 != -a ]]; then
if [[ $1 != -a ]]; then
- arg=
"--filter-origins $(positive-origins)"
+ arg=
(--filter-origins "$(positive-origins)")
fi
local file=$1
# ucfq can tell us about config files which are not tracked
fi
local file=$1
# ucfq can tell us about config files which are not tracked
@@
-218,9
+218,9
@@
EOF
if [[ $file == /* ]]; then
dpkg -S "$file"
elif [[ $file == */* ]]; then
if [[ $file == /* ]]; then
dpkg -S "$file"
elif [[ $file == */* ]]; then
- apt-file
$arg
find -x "$file"\$
+ apt-file
"${arg[@]}"
find -x "$file"\$
else
else
- apt-file
$arg
find -x /"$file"\$
+ apt-file
"${arg[@]}"
find -x /"$file"\$
update-alternatives --list "$file" 2>/dev/null
fi
}
update-alternatives --list "$file" 2>/dev/null
fi
}