File: debsums_init

package info (click to toggle)
debsums 2.0.52%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 376 kB
  • sloc: perl: 690; sh: 95; makefile: 18
file content (15 lines) | stat: -rwxr-xr-x 570 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e
# Copyright (C) 2007 Osamu Aoki <osamu@debian.org>, Public Domain
# Find out missing *.md5sum and add it to the list
cd /var/lib/dpkg/info
for package in $(debsums --list-missing); do
  echo "checking $package"
  if [ ! -e $package.md5sums ]; then
    echo "******* $package.md5sums missing *******"
    apt-get --download-only --reinstall --yes install $package || true
    debsums --generate=nocheck -p /var/cache/apt/archives $package || true
  fi
done
echo "Finished generating md5sums!"
echo "Checking still missing md5files..."
debsums --list-missing