logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

000-sync_gentoo_dtd (359B)


  1. #!/bin/bash
  2. repository_name="${1}"
  3. repository_path="${3}"
  4. [[ ${repository_name} == "gentoo" ]] || exit 0
  5. source /lib/gentoo/functions.sh
  6. DTDDIR="${repository_path}"/metadata/dtd
  7. ebegin "Updating DTDs"
  8. if [[ -e ${DTDDIR} ]]; then
  9. git -C "${DTDDIR}" pull -q --ff-only
  10. else
  11. git clone -q https://anongit.gentoo.org/git/data/dtd.git "${DTDDIR}"
  12. fi
  13. eend "$?"