From 3ebda62f04342ea362d05d88c13500d4a3f6f040 Mon Sep 17 00:00:00 2001
From: Jake Guffey <jake.guffey@eprotex.com>
Date: Wed, 22 Feb 2012 12:41:45 -0500
Subject: [PATCH] bugfix -- needed to pass '-r' to ${add_cmd} to retreive
 package from remote repository.

---
 conf/type/__package_pkg_freebsd/gencode-remote | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/type/__package_pkg_freebsd/gencode-remote b/conf/type/__package_pkg_freebsd/gencode-remote
index fa962970..ef6632c0 100755
--- a/conf/type/__package_pkg_freebsd/gencode-remote
+++ b/conf/type/__package_pkg_freebsd/gencode-remote
@@ -107,7 +107,7 @@ if [ -n "$curr_version" ]; then	# PKG *is* installed
 				assert "! ${version} = ${curr_version}" $LINENO
 				cmd="${rm_cmd} ${name}-${curr_version}"
 				execcmd "remove" "${cmd}"
-				cmd="${add_cmd} ${name}-${version}"
+				cmd="${add_cmd} -r ${name}-${version}"
 				execcmd "add" "${cmd}"
 			fi
 		else	# Don't care what version to use