File 0003-quilt-switch-series-file-for-series.conf.patch of Package quilt
From 15c5e2462b88c692f72798ee89719d57ad7fa430 Mon Sep 17 00:00:00 2001
From: Benjamin Poirier <bpoirier@suse.de>
Date: Wed, 15 Mar 2017 09:54:52 -0700
Subject: [PATCH 3/5] quilt: switch series file for series.conf
This is meant to work in SUSE's kernel-source.git
---
quilt/scripts/patchfns.in | 12 ++++++++++++
1 file changed, 12 insertions(+)
Index: quilt-0.68/quilt/scripts/patchfns.in
===================================================================
--- quilt-0.68.orig/quilt/scripts/patchfns.in
+++ quilt-0.68/quilt/scripts/patchfns.in
@@ -1238,6 +1238,18 @@ then
exit 1
fi
+ # If operating in an expanded tree from the kernel-source.git
+ # repository, replace a plain "series" file with a link to the source
+ # "series.conf" file. This will allow quilt commands which change the
+ # series file (like `quilt import`) to automatically update
+ # "series.conf".
+ if [ -r series ] && ! ( [ -L series ] &&
+ head -n1 series | grep -qv "^# Kernel patches configuration file$" ) &&
+ [ -r patches/series.conf ] &&
+ head -n1 patches/series.conf | grep -q "^# Kernel patches configuration file$"; then
+ ln -sf patches/series.conf series
+ fi
+
# Check if series file was modified manually, and if this is the case,
# make sure it is still consistent with the applied patches
if [ -s "$DB" -a ! "$DB" -nt "$SERIES" ] && [ "$QUILT_COMMAND" != pop ] && ! consistency_check