From a611ba8e704250258eee14eab029094c4ef37d90 Mon Sep 17 00:00:00 2001 From: bgme Date: Wed, 23 Aug 2023 22:07:14 +0800 Subject: [PATCH] fix linux-bcachefs-git --- repo/linux-bcachefs-git/lilac.py | 11 +++++++++++ repo/linux-bcachefs-git/lilac.yaml | 4 +--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 repo/linux-bcachefs-git/lilac.py diff --git a/repo/linux-bcachefs-git/lilac.py b/repo/linux-bcachefs-git/lilac.py new file mode 100644 index 0000000..44890b1 --- /dev/null +++ b/repo/linux-bcachefs-git/lilac.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 + +from lilaclib import * + + +def pre_build(): + aur_pre_build() + for line in edit_file('PKGBUILD'): + if line.startswith('prepare() {'): + line = line + '\n git config --global user.email "lilac@noreply.bgme.me"\n git config --global user.name "Lilac"\n' + print(line) diff --git a/repo/linux-bcachefs-git/lilac.yaml b/repo/linux-bcachefs-git/lilac.yaml index 2b6b3e4..6521120 100644 --- a/repo/linux-bcachefs-git/lilac.yaml +++ b/repo/linux-bcachefs-git/lilac.yaml @@ -7,12 +7,10 @@ repo_depends: build_prefix: extra-x86_64 -pre_build: aur_pre_build - post_build: aur_post_build update_on: - source: aur aur: linux-bcachefs-git - source: github - github: koverstreet/bcachefs \ No newline at end of file + github: koverstreet/bcachefs