File tree Expand file tree Collapse file tree 2 files changed +30
-14
lines changed Expand file tree Collapse file tree 2 files changed +30
-14
lines changed Original file line number Diff line number Diff line change @@ -1557,15 +1557,23 @@ tasks:
1557
1557
set -o errexit
1558
1558
if [ "${is_patch}" = "true" ]; then
1559
1559
cd mongoc
1560
- git diff HEAD > ../evergreen.patch
1560
+ git diff HEAD -- . ':!debian' > ../upstream.patch
1561
+ git diff HEAD -- debian > ../debian.patch
1561
1562
git clean -fdx
1562
1563
git reset --hard HEAD
1563
- [ -d debian/patches ] || mkdir debian/patches
1564
- mv ../evergreen.patch debian/patches/
1565
- echo evergreen.patch >> debian/patches/series
1566
- git add debian/patches/*
1567
- git commit -m 'Evergreen patch build'
1568
- git log -n1 -p
1564
+ if [ -s ../upstream.patch ]; then
1565
+ [ -d debian/patches ] || mkdir debian/patches
1566
+ mv ../upstream.patch debian/patches/
1567
+ echo upstream.patch >> debian/patches/series
1568
+ git add debian/patches/*
1569
+ git commit -m 'Evergreen patch build - upstream changes'
1570
+ git log -n1 -p
1571
+ fi
1572
+ if [ -s ../debian.patch ]; then
1573
+ git apply --index ../debian.patch
1574
+ git commit -m 'Evergreen patch build - Debian packaging changes'
1575
+ git log -n1 -p
1576
+ fi
1569
1577
cd ..
1570
1578
fi
1571
1579
git clone https://salsa.debian.org/installer-team/debootstrap.git debootstrap.git
Original file line number Diff line number Diff line change @@ -1560,15 +1560,23 @@ tasks:
1560
1560
set -o errexit
1561
1561
if [ "${is_patch}" = "true" ]; then
1562
1562
cd mongoc
1563
- git diff HEAD > ../evergreen.patch
1563
+ git diff HEAD -- . ':!debian' > ../upstream.patch
1564
+ git diff HEAD -- debian > ../debian.patch
1564
1565
git clean -fdx
1565
1566
git reset --hard HEAD
1566
- [ -d debian/patches ] || mkdir debian/patches
1567
- mv ../evergreen.patch debian/patches/
1568
- echo evergreen.patch >> debian/patches/series
1569
- git add debian/patches/*
1570
- git commit -m 'Evergreen patch build'
1571
- git log -n1 -p
1567
+ if [ -s ../upstream.patch ]; then
1568
+ [ -d debian/patches ] || mkdir debian/patches
1569
+ mv ../upstream.patch debian/patches/
1570
+ echo upstream.patch >> debian/patches/series
1571
+ git add debian/patches/*
1572
+ git commit -m 'Evergreen patch build - upstream changes'
1573
+ git log -n1 -p
1574
+ fi
1575
+ if [ -s ../debian.patch ]; then
1576
+ git apply --index ../debian.patch
1577
+ git commit -m 'Evergreen patch build - Debian packaging changes'
1578
+ git log -n1 -p
1579
+ fi
1572
1580
cd ..
1573
1581
fi
1574
1582
git clone https://salsa.debian.org/installer-team/debootstrap.git debootstrap.git
You can’t perform that action at this time.
0 commit comments