Skip to content

Commit b47d827

Browse files
authored
Add: auto add liblol dependency
Add: auto add liblol dependency
1 parent 67d730c commit b47d827

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

loong64-it/loong64-it.bash

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ _convert_loong64() {
6363
sed -e 's|^Architecture: loongarch64$|Architecture: loong64|g' \
6464
-i "$DEBDIR"/metadata/control
6565

66+
if grep -q "Depends:" "$DEBDIR"/metadata/control; then
67+
sed -i '/Depends:/ s/$/, liblol,liblol-dkms/' "$DEBDIR"/metadata/control
68+
else
69+
echo "Depends: liblol" >> "$DEBDIR"/metadata/control
70+
fi
71+
72+
6673
abinfo "Building metadata archive (control.tar.${CONTROL_EXT}): $1 ..."
6774
cd "$DEBDIR"/metadata
6875
tar cvf${TAR_COMP_FLAG} "$DEBDIR"/control.tar."${CONTROL_EXT}" * || \

0 commit comments

Comments
 (0)