mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
Recognise EXTRA_PATCHES.
This commit is contained in:
parent
1fe95ede94
commit
ede6fd9dae
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57733
@ -269,6 +269,7 @@ def query_yn(message, default = False):
|
||||
elif reply == '' and default in (True, False):
|
||||
return default
|
||||
print 'Wrong answer "%s", please try again' % reply
|
||||
return default
|
||||
|
||||
|
||||
#
|
||||
@ -557,6 +558,11 @@ def generate(args, automatic, force, ignoremtime):
|
||||
if os.path.isdir(patchdir):
|
||||
patches.adddir(patchdir, wrksrc)
|
||||
|
||||
extra_patches = querymakevar('EXTRA_PATCHES', portdir, True)
|
||||
for extra_patch in extra_patches.split():
|
||||
if os.path.isfile(extra_patch):
|
||||
patches.addpatchfile(extra_patch, wrksrc)
|
||||
|
||||
patchobj = patches.lookupbytarget(wrksrc, relpath)
|
||||
if patchobj == None:
|
||||
patchobj = NewPatch(patchdir, wrksrc, relpath)
|
||||
|
Loading…
Reference in New Issue
Block a user