[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] [PATCH 2/7] setup: Try alternative patches/series names
From: |
Jean Delvare |
Subject: |
[Quilt-dev] [PATCH 2/7] setup: Try alternative patches/series names |
Date: |
Sun, 21 Oct 2012 14:26:50 +0200 |
setup: If a tar file contains a patches directory or a series file,
automatically try alternative names which are less likely to collide.
---
quilt/setup.in | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
--- a/quilt/setup.in
+++ b/quilt/setup.in
@@ -201,7 +201,13 @@ do
esac
done < $tmpfile
-check_for_existing_files || exit 1
+if ! check_for_existing_files
+then
+ echo "Trying alternative patches and series names..." >&2
+ QUILT_PATCHES=quilt_patches
+ QUILT_SERIES=quilt_series
+ check_for_existing_files || exit 1
+fi
while read tag dir arg1 arg2
do
--
Jean Delvare
Suse L3
- [Quilt-dev] [PATCH 0/7 v2] quilt setup improvements, Jean Delvare, 2012/10/21
- [Quilt-dev] [PATCH 1/7] setup: Check for existing files after unpacking, Jean Delvare, 2012/10/21
- [Quilt-dev] [PATCH 2/7] setup: Try alternative patches/series names,
Jean Delvare <=
- [Quilt-dev] [PATCH 3/7] setup: Run create_db, Jean Delvare, 2012/10/21
- [Quilt-dev] [PATCH 4/7 v2] setup/inspect: Handle zip archives, Jean Delvare, 2012/10/21
- [Quilt-dev] [PATCH 5/7] setup: Fix white space handling by check_for_existing_files, Jean Delvare, 2012/10/21
- [Quilt-dev] [PATCH 6/7] setup: Check for existing directories before unpacking, Jean Delvare, 2012/10/21
- [Quilt-dev] [PATCH 7/7] inspect: Refactor code to pwd_to_dir, Jean Delvare, 2012/10/21