#!/usr/bin/env bash

if [[ ! $(hostname) == pkgforge-* ]]; then
  echo "We are not in a pkgforge Container"
  exit 1
fi

#xbps-rindex --clean current/
xbps-rindex --remove-obsoletes current/
xbps-rindex --add current/*.xbps
xbps-rindex --sign-pkg current/*.xbps
