mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
bacman: fix the fact that the depends file no longer exists
Addresses FS#23641. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
dbd7d49d31
commit
31cb210057
@ -174,7 +174,7 @@ fi
|
|||||||
echo "# $(LC_ALL=C date)" >> .PKGINFO
|
echo "# $(LC_ALL=C date)" >> .PKGINFO
|
||||||
echo "#" >> .PKGINFO
|
echo "#" >> .PKGINFO
|
||||||
|
|
||||||
cat "$pkg_dir"/{desc,files,depends} |
|
cat "$pkg_dir"/{desc,files} |
|
||||||
while read i; do
|
while read i; do
|
||||||
if [[ -z "$i" ]]; then
|
if [[ -z "$i" ]]; then
|
||||||
continue;
|
continue;
|
||||||
@ -220,14 +220,6 @@ while read i; do
|
|||||||
%REPLACES%)
|
%REPLACES%)
|
||||||
echo "replaces = $i" >> .PKGINFO
|
echo "replaces = $i" >> .PKGINFO
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# files
|
|
||||||
%BACKUP%)
|
|
||||||
# strip the md5sum after the tab
|
|
||||||
echo "backup = ${i%%$'\t'*}" >> .PKGINFO
|
|
||||||
;;
|
|
||||||
|
|
||||||
# depends
|
|
||||||
%DEPENDS%)
|
%DEPENDS%)
|
||||||
echo "depend = $i" >> .PKGINFO
|
echo "depend = $i" >> .PKGINFO
|
||||||
;;
|
;;
|
||||||
@ -240,6 +232,12 @@ while read i; do
|
|||||||
%PROVIDES%)
|
%PROVIDES%)
|
||||||
echo "provides = $i" >> .PKGINFO
|
echo "provides = $i" >> .PKGINFO
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# files
|
||||||
|
%BACKUP%)
|
||||||
|
# strip the md5sum after the tab
|
||||||
|
echo "backup = ${i%%$'\t'*}" >> .PKGINFO
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user