Recognise EXTRA_PATCHES.

This commit is contained in:
Maxim Sobolev 2002-04-15 21:04:58 +00:00
parent 1fe95ede94
commit ede6fd9dae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57733

View File

@ -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)