[Frugalware-git] pacman-tools: repoman: add list-untracked server command

Miklos Vajna vmiklos at frugalware.org
Wed Nov 10 15:32:51 CET 2010


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=554e74b867878d19afd3de62edc2dec3f05ff380

commit 554e74b867878d19afd3de62edc2dec3f05ff380
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Wed Nov 10 15:30:36 2010 +0100

repoman: add list-untracked server command

so that we use 'repoman server' on the server all time time

diff --git a/repoman b/repoman
index 4c7c696..63f9130 100755
--- a/repoman
+++ b/repoman
@@ -174,6 +174,22 @@ server()
done
;;

+		list-untracked)
+		shift
+		if [ $# -lt 1 ]; then
+			echo "Too few parameters!"
+			echo "usage: repoman server list-untracked path"
+			return 1
+		fi
+		local path="$1"
+		shift
+		check_absolute_path
+		if [ -d $path ]; then
+			cd $path
+			git ls-files --others --directory
+		fi
+		;;
+
changelog)
shift
if [ $# -lt 5 ]; then
@@ -603,7 +619,7 @@ srcdel()
srclocal=(${srclocal[@]} ${signatures[@]})
if [ "$F_makepkg_scm" = "git" ]; then
check_servers
-		for i in $($repoman_ssh $host "[ -d $path/$mydir ] && cd $path/$mydir && git ls-files --others --directory")
+		for i in $($repoman_ssh $host "$sudo_cmd repoman server list-untracked '$path/$mydir'")
do
if ! echo ${srclocal[@]} |grep -q $i && ! _is_log $i && [ "$i" != "Changelog" ]; then
dry_run delete $mydir/$i


More information about the Frugalware-git mailing list