File: ucf

package info (click to toggle)
cruft-ng 0.9.78
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,904 kB
  • sloc: cpp: 1,748; sh: 816; python: 262; makefile: 97; ansic: 82; perl: 75
file content (21 lines) | stat: -rwxr-xr-x 359 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -e

test -z "$CRUFT_ROOT" || exit 0

test -f /var/lib/ucf/registry || exit 0

last_package=None
while read -r package file
do
    if test -f "$file"
    then
        if [ "$package" != "$last_package" ]
        then
            echo "$package"
        fi
        echo "$file"
        last_package="$package"
    fi
done < /var/lib/ucf/registry