[PC-BSD Commits] r9747 - pcbsd/current/src-sh/pbi-manager

svn at pcbsd.org svn at pcbsd.org
Mon Mar 21 12:52:38 PDT 2011


Author: kris
Date: 2011-03-21 12:52:38 -0700 (Mon, 21 Mar 2011)
New Revision: 9747

Modified:
   pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:

Allow getting repo details as a user



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-03-21 19:40:46 UTC (rev 9746)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-03-21 19:52:38 UTC (rev 9747)
@@ -2123,14 +2123,16 @@
 	if [ -z "$PBI_LISTREPO_ID" ] ; then
 		list_all_pbi_repo
 	else
-		require_root
 		if [ ! -z "${PBI_LISTREPO_UP}" ]; then
+			require_root
 			move_repo_up "${PBI_LISTREPO_ID}" 
 			list_all_pbi_repo
 		elif [ ! -z "${PBI_LISTREPO_DOWN}" ] ; then
+			require_root
 			move_repo_down "${PBI_LISTREPO_ID}"
 			list_all_pbi_repo
 		elif [ ! -z "${PBI_LISTREPO_MIRROR}" ] ; then
+			require_root
 			change_repo_mirror "${PBI_LISTREPO_ID}"
 			listrepo_details "${PBI_LISTREPO_ID}"
 		else



More information about the Commits mailing list