mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
- pkg-comment is no longer mandatory;
- ignore patchfiles ending with `,v' or '.orig'.
This commit is contained in:
parent
f803dc6806
commit
307e2a0837
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75996
@ -60,7 +60,7 @@ class Vars:
|
||||
# Check if the supplied patch refers to a port's directory.
|
||||
#
|
||||
def isportdir(path, soft = False):
|
||||
REQ_FILES = ('Makefile', 'pkg-comment', 'pkg-descr', 'pkg-plist', \
|
||||
REQ_FILES = ('Makefile', 'pkg-descr', 'pkg-plist', \
|
||||
'distinfo')
|
||||
if not os.path.isdir(path) and soft != True:
|
||||
raise IOError(errno.ENOENT, path)
|
||||
@ -542,6 +542,10 @@ def generate(args, automatic, force, ignoremtime):
|
||||
patches = PatchesCollection()
|
||||
|
||||
for filepath in args:
|
||||
for suf in Vars.RCSDIFF_SUFX, Vars.DIFF_SUFX:
|
||||
if filepath.endswith(suf):
|
||||
filepath = filepath[:-len(suf)]
|
||||
break
|
||||
if not os.path.isfile(filepath):
|
||||
raise IOError(errno.ENOENT, filepath)
|
||||
# Not reached #
|
||||
|
Loading…
Reference in New Issue
Block a user