# HG changeset patch # User Franz Glasner # Date 1509051862 -7200 # Node ID 532757223c288db19670399b5d018c7747f245c8 # Parent c0e2eb5613fe588b17f1998e6f233ffb0ba6e50f Handle a "FreeBSDPorts" repository also. This repo is for installation from ports with unchanged (default) OPTIONS. diff -r c0e2eb5613fe -r 532757223c28 bin/check-ports --- a/bin/check-ports Thu Oct 26 22:45:08 2017 +0200 +++ b/bin/check-ports Thu Oct 26 23:04:22 2017 +0200 @@ -7,6 +7,12 @@ # : ${LOCAL_REPO:=LocalRepo} # +# Local repository with ports with default OPTIONS (i.e. unchanged) +# but newer than the packages in the "FreeBSD" repository. +# Some sort of a fast-track repository. +# +: ${FREEBSDPORTS_REPO:=FreeBSDPorts} +# # The official FreeBSD binary repository # : ${FREEBSD_REPO:=FreeBSD} @@ -88,6 +94,7 @@ } alldata_flag="" +alldata_FreeBSDPorts_flag="" alldata_LocalRepo_flag="" verbose_flag="" @@ -95,6 +102,7 @@ case ${_opt} in A) alldata_flag=1 + alldata_FreeBSDPorts_flag=1 alldata_LocalRepo_flag=1 ;; a) @@ -117,6 +125,7 @@ installed_data="$(pkg query '%n %v %R' $installed_packages)" get_remote_repo_versions ${LOCAL_REPO} +get_remote_repo_versions ${FREEBSDPORTS_REPO} get_remote_repo_versions ${FREEBSD_REPO} get_local_index_versions @@ -133,14 +142,18 @@ exit 1 fi get_remote_repo_data ${LOCAL_REPO} ${_installed_name} + get_remote_repo_data ${FREEBSDPORTS_REPO} ${_installed_name} get_remote_repo_data ${FREEBSD_REPO} ${_installed_name} get_repo_for_package ${_installed_name} - if [ \( -n "${alldata_flag}" \) -o \( ${llabel} != '?' -a ${llabel} != '=' \) -o \( ${remote_FreeBSD_label} != '?' -a ${remote_FreeBSD_label} != '=' \) -o \( ${remote_LocalRepo_label} != '?' -a ${remote_LocalRepo_label} != '=' \) ] ; then + if [ \( -n "${alldata_flag}" \) -o \( ${llabel} != '?' -a ${llabel} != '=' \) -o \( ${remote_FreeBSD_label} != '?' -a ${remote_FreeBSD_label} != '=' \) -o \( ${remote_FreeBSDPorts_label} != '?' -a ${remote_FreeBSDPorts_label} != '=' \) -o \( ${remote_LocalRepo_label} != '?' -a ${remote_LocalRepo_label} != '=' \) ] ; then if [ -z "${_title_printed}" ] ; then echo "${lfqp} (${repository})" fi echo " INDEX: ${llabel} ${ldescr}" echo " FreeBSD: ${remote_FreeBSD_label} ${remote_FreeBSD_descr}" + if [ \( -n "${alldata_FreeBSDPorts_flag}" \) -o \( ${remote_FreeBSDPorts_label} != '?' \) ] ; then + echo " FreeBSDPorts: ${remote_FreeBSDPorts_label} ${remote_FreeBSDPorts_descr}" + fi if [ \( -n "${alldata_LocalRepo_flag}" \) -o \( ${remote_LocalRepo_label} != '?' \) ] ; then echo " LocalRepo: ${remote_LocalRepo_label} ${remote_LocalRepo_descr}" fi