In the wave of removing as much packages installed form AUR, I need to reconsider the use of xidel.
.config/zsh/alias.d/50-SUSE-IM.alias
67-
68-alias sepkg='f() {
69-# Search packages that build binaries that contains the searched substring (case-insensitive)
70:# Xidel upstream: http://videlibri.sourceforge.net/xidel.html
71-#
72-# Example:
73-# > sepkg webkit
--
84-
85- local _different_folder=false
86- [ "$PWD" != "$SUSE_CHANNELS" ] && { _different_folder="$PWD"; cd $SUSE_CHANNELS }
87: xidel -s --xpath \
88- "//binary[matches(@name,\"${1}\",\"i\") or matches(@package,\"${1}\",\"i\")]/@package" \
89- */_channel 2>/dev/null | sort -u
90- [ "$_different_folder" != false ] && cd $_different_folder
--
106-
107- local _different_folder=false
108- [ "$PWD" != "$SUSE_CHANNELS" ] && { _different_folder="$PWD"; cd $SUSE_CHANNELS }
109: xidel -s --xpath \
110- "//binary[matches(@name,\"${1}\",\"i\") or matches(@package,\"${1}\",\"i\")]/concat(parent::binaries/@project, \" \",@package,\" \",@name)" \
111- */_channel 2>/dev/null | sort -u | column -t -N Codestream,Package,Binary
112- [ "$_different_folder" != false ] && cd $_different_folder
--
140-
141- local _different_folder=false
142- [ "$PWD" != "$SUSE_CHANNELS" ] && { _different_folder="$PWD"; cd $SUSE_CHANNELS }
143: xidel -s --xpath \
144- "//channel[not(exists(disabled)) and descendant::target[not(exists(disabled))]]//binary[(@name=\"${1}\")]/parent::binaries/@project" \
145- */_channel | sort -u
146- [ "$_different_folder" != false ] && cd $_different_folder
--
151-
152- local _different_folder=false
153- [ "$PWD" != "$SUSE_CHANNELS" ] && { _different_folder="$PWD"; cd $SUSE_CHANNELS }
154: xidel -s --xpath \
155- "//channel[not(exists(disabled)) and descendant::target[exists(disabled)]]//binary[(@name=\"${1}\")]/parent::binaries/@project" \
156- */_channel | sort -u
157- [ "$_different_folder" != false ] && cd $_different_folder
In the wave of removing as much packages installed form AUR, I need to reconsider the use of
xidel.Currently found in the following aliases: