Codebase list rust-serde-xml-rs / 77166d1
dev/list-rdeps: prompt to update if apt is too old Ximin Luo 4 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
77
88 pkg="${1//_/-}"
99 pkg="${pkg#rust-}"
10
11 if [ $(($(date +%s) - $(stat -c %Y /var/cache/apt/pkgcache.bin))) -gt 7200 ]; then
12 read -p "APT cache is a bit old, update? [Y/n] " x
13 if [ "$x" != "n" ]; then sudo apt update; fi
14 fi
1015
1116 echo "Version in unstable:"
1217 aptitude versions --disable-columns -F '%p' --group-by=none "~e^rust-${pkg}$ ~rnative ~Aunstable"