From bad7fb53cabedf5bf47f820123655b4f11952a9b Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Wed, 26 Dec 2012 16:37:59 +0400 Subject: [PATCH] tags2lists: filter out vim swap files The (funny but somewhat confusing) problem manifests itself as E: Couldn't find package Binary during a build run in the profile where a tagged packagelist referenced by a specific target being built is open with vim (which results in .FILE.sw? temporary file lying aside). --- bin/tags2lists | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tags2lists b/bin/tags2lists index 6b7a9aed..33869208 100755 --- a/bin/tags2lists +++ b/bin/tags2lists @@ -30,4 +30,4 @@ transformed="$(sed \ -e "s, *) *, ) ,g")" [ "$DEBUG" = 2 ] && echo "`basename $0`: transformed = \"$transformed\"" >&2 -[ -z "$transformed" ] || find $transformed | sed 's,^\./,,' +[ -z "$transformed" ] || find $transformed | sed 's,^\./,,' | grep -v '\.sw.$'