[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] [PATCH] setup: Default to fast mode
From: |
Jean Delvare |
Subject: |
[Quilt-dev] [PATCH] setup: Default to fast mode |
Date: |
Mon, 15 Apr 2019 10:35:07 +0200 |
The fast mode of processing spec files has been implemented over 4
years ago. Not only it is faster, but it also handles corner cases
in spec files better in general. Make it the new default.
Option --slow is still available to revert to the old implementation
if needed. However in the long run I hope that we can get rid of it
completely.
Signed-off-by: Jean Delvare <address@hidden>
---
quilt/setup.in | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
--- quilt.orig/quilt/setup.in 2019-04-15 09:26:53.081321623 +0200
+++ quilt/quilt/setup.in 2019-04-15 10:34:16.544495884 +0200
@@ -249,7 +249,7 @@ inspect()
ln -s "$targetdir" $tmpdir/build
export -f create_md5sums
else
- # Standard mode
+ # Legacy mode
mkdir -p $tmpdir/build
create_md5sums "$sourcedir" $tmpdir/md5sums
fi
@@ -292,15 +292,14 @@ Initializes a source tree from an rpm sp
--fuzz=N
Set the maximum fuzz factor (needs rpm 4.6 or later).
---slow Use the original, slow method to process the spec file. This is the
- default for now, but that might change in the future. In this mode,
+--slow Use the original, slow method to process the spec file. In this mode,
rpmbuild generates a working tree in a temporary directory while all
its actions are recorded, and then everything is replayed from scratch
in the target directory.
---fast Use an alternative, faster method to process the spec file. In this
- mode, rpmbuild is told to generate a working tree directly in the
- target directory.
+--fast Use the new, faster method to process the spec file. In this mode,
+ rpmbuild is told to generate a working tree directly in the target
+ directory. This is now the default.
"
exit 0
else
@@ -317,6 +316,7 @@ fi
eval set -- "$options"
+export QUILT_SETUP_FAST=1
prefix=
sourcedir=
@@ -342,7 +342,7 @@ do
QUILT_SETUP_FAST=
shift ;;
--fast)
- export QUILT_SETUP_FAST=1
+ QUILT_SETUP_FAST=1
shift ;;
--)
shift
--
Jean Delvare
SUSE L3 Support
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Quilt-dev] [PATCH] setup: Default to fast mode,
Jean Delvare <=