[{-Tp|--tag-prefix} <prefix>] [{-tt|--test-tag}]
[-nu|--no-urls] [-v|--verbose] [--opts <rpm opts>] [--short-circuit]
[--show-bconds] [--with/--without <feature>] [--define <macro> <value>]
-[--git-pld|--git-tld] [--pkgrev]
+[--git-pld|--git-tld] [--pkgrev] [-lp]
<package>[.spec][:tag]
-4 - force IPv4 when transferring files
--git-pld - force use of PLD git and distfiles
--git-tld - force use of TLD git and distfiles (note: it will fall
back to PLD git/df if package doesn't exist in TLD git)
---pkgrev - write git revision of package being built into rsync repo
+--pkgrev - save git revision of package being built into pkgrevs
(note: only official TLD source builders are allowed to do so)
+-lp - list pkgrevs for specified package
"
}
Exit_error err_pkgrev_set
}
+list_pkgrev() {
+ local _tmp=$(mktemp /tmp/.builder-XXXX)
+ rm $_tmp 2>/dev/null
+ $GETURI $OUTFILEOPT $_tmp $PKGREVS_URL/list/$PACKAGE_NAME 1>/dev/null 2>&1
+ cat $_tmp
+ rm $_tmp 2>/dev/null
+}
+
branch_files() {
TAG=$1
echo "Git branch: $TAG"
--pkgrev)
COMMAND="set_pkgrev"
shift;;
+ -lp)
+ COMMAND="list_pkgrev"
+ shift;;
-*)
Exit_error err_invalid_cmdline "$1"
;;
display_bconds
set_pkgrev
;;
+ "list_pkgrev" )
+ init_builder
+ if [ -z "$SPECFILE" ]; then
+ Exit_error err_no_spec_in_cmdl
+ fi
+ get_spec > /dev/null
+ parse_spec
+ list_pkgrev
+ ;;
esac
if [ -f "`pwd`/.${SPECFILE}_INSTALLED_PACKAGES" -a "$REMOVE_BUILD_REQUIRES" != "" ]; then
rm "`pwd`/.${SPECFILE}_INSTALLED_PACKAGES"