summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2003-02-21 00:48:19 +0000
committersobomax <sobomax@FreeBSD.org>2003-02-21 00:48:19 +0000
commit054f24d49b803280ad980cec00a7c7697fdc5e3b (patch)
treec107b0c3f2f360613627fec5c0a24a032a87fa6c
parent99a22e3eaf1478bf2a86f477203315349d3c500e (diff)
downloadFreeBSD-ports-054f24d49b803280ad980cec00a7c7697fdc5e3b.zip
FreeBSD-ports-054f24d49b803280ad980cec00a7c7697fdc5e3b.tar.gz
- pkg-comment is no longer mandatory;
- ignore patchfiles ending with `,v' or '.orig'.
-rwxr-xr-xTools/scripts/patchtool.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/scripts/patchtool.py b/Tools/scripts/patchtool.py
index f9008af..de9a5ed 100755
--- a/Tools/scripts/patchtool.py
+++ b/Tools/scripts/patchtool.py
@@ -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 #
OpenPOWER on IntegriCloud