Add update-fullfilelist
This commit is contained in:
parent
15fc0fd248
commit
69cc7c34f3
1 changed files with 20 additions and 0 deletions
20
roles/bodhi/backend/files/update-fullfilelist
Executable file
20
roles/bodhi/backend/files/update-fullfilelist
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
# currently runs on releng2.fedora.phx.redhat.com
|
||||
|
||||
MOD=$1
|
||||
[ -z "$MOD" ] && {
|
||||
echo "usage: $0 <module>"
|
||||
exit 1
|
||||
}
|
||||
|
||||
TMPFILE=$(mktemp -p /tmp/)
|
||||
pushd /pub/$MOD > /dev/null
|
||||
find * -print > $TMPFILE
|
||||
if diff $TMPFILE fullfilelist > /dev/null; then
|
||||
rm -f $TMPFILE
|
||||
else
|
||||
mv $TMPFILE fullfilelist
|
||||
fi
|
||||
chmod 0644 fullfilelist
|
||||
popd > /dev/null
|
Loading…
Add table
Add a link
Reference in a new issue