From c24209028a6c531ff731a18ab5836ad71ef7b999 Mon Sep 17 00:00:00 2001
From: Lukas Fleischer <archlinux@cryptocrack.de>
Date: Sun, 21 Aug 2011 01:19:10 +0200
Subject: [PATCH] archrelease: Copy new files from trunk
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Currently, files that have just been added to trunk are not copied to
the repositories when invoking archrelease, as `svn ls` does not list
them if we don't `svn update` explicitly before. Use `svn ls -r HEAD` to
include everything from current HEAD. Fixes FS#25680.

Reported-by: Eric Bélanger <snowmaniscool@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
---
 archrelease | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/archrelease b/archrelease
index 287c5e7..2ca0b95 100755
--- a/archrelease
+++ b/archrelease
@@ -30,7 +30,7 @@ if [[ $(svn status -q) ]]; then
 fi
 
 pushd .. >/dev/null
-IFS=$'\n' read -r -d '' -a known_files < <(svn ls "trunk")
+IFS=$'\n' read -r -d '' -a known_files < <(svn ls -r HEAD "trunk")
 for file in "${known_files[@]}"; do
 	if [[ ${file:(-1)} = '/' ]]; then
 		abort "archrelease: subdirectories are not supported in package directories!"
-- 
GitLab