File: update-from-web.sh

package info (click to toggle)
command-not-found 18.04.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 8,184 kB
  • sloc: python: 995; sh: 43; makefile: 9
file content (13 lines) | stat: -rwxr-xr-x 318 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

distro=$(dpkg-parsechangelog -S Distribution)

cd CommandNotFound/db

# the commands-not-found data is currently extracted here
mkdir -p dists
scp -r nusakan.canonical.com:~mvo/cnf-extractor/command-not-found-extractor/dists/${distro}* dists/
find dists/ -name "*.xz" -o -name "*.gz" | xargs rm -f