Browse Source

termux-upgrade-repo: use apt list to get installable package list

android-5
Henrik Grimler 6 years ago
committed by Fredrik Fornwall
parent
commit
a1d67188d7
  1. 2
      packages/termux-tools/termux-upgrade-repo

2
packages/termux-tools/termux-upgrade-repo

@ -37,7 +37,7 @@ else
fi
echo "PACKAGES_TO_INSTALL=\"$(dpkg-query -f '${binary:Package}\n' -W)\"" >> $BACKUP_SCRIPT
echo 'apt install $(comm -12 <(echo "${PACKAGES_TO_INSTALL}") <(dpkg-query -f '"'"'${binary:Package}\\n'"'"' -W))' >> $BACKUP_SCRIPT
echo 'apt install $(comm -12 <(echo "${PACKAGES_TO_INSTALL}") <(apt list 2>&1 | awk -F"/" '"'"'{print $1}'"'"'))' >> $BACKUP_SCRIPT
chmod +x $BACKUP_SCRIPT
echo Ok
echo ''

Loading…
Cancel
Save