#!/bin/bash

exec 20>/run/repoupdate.lock
flock -n 20 || exit 9

cd "$(dirname "$0")"

if [[ -d ../debsource ]]; then
  cd ../debsource/
  . deb.sh
  cd -
fi
. update_dist.sh
. update_normal.sh

date +%s > lastupdate
ln -sf lastupdate lastupdate.txt

