Skip to content

Instantly share code, notes, and snippets.

@twodayslate
Created August 4, 2015 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twodayslate/e0cf4fa16e3564eff363 to your computer and use it in GitHub Desktop.
Save twodayslate/e0cf4fa16e3564eff363 to your computer and use it in GitHub Desktop.
#/bin/bash
echo "RepoFresh by @bensge"
echo "Finding old packages files and deleting them"
if [[ -f Packages.bz2 ]];
then rm -rf "Packages.bz2";
fi
if [[ -f Packages ]];
then rm -rf "Packages";
fi
echo "finding packages and integrating them in packages file"
dpkg-scanpackages -m . /dev/null >> Packages
sed -i 's@./com.bensge@./deb.php?filename=com.bensge@g' Packages
echo "Compressing packages..."
bzip2 Packages
echo "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment