Patchwork D7169: packaging: remove hg-ssh.8.html from Inno installer

login
register
mail settings
Submitter phabricator
Date Nov. 11, 2019, 9:09 p.m.
Message ID <645641369a1aeb7cb5653ef58a7daa58@localhost.localdomain>
Download mbox | patch
Permalink /patch/43124/
State Not Applicable
Headers show

Comments

phabricator - Nov. 11, 2019, 9:09 p.m.
Closed by commit rHGa2f28a8746bf: packaging: remove hg-ssh.8.html from Inno installer (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7169?vs=17403&id=18022

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7169/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7169

AFFECTED FILES
  contrib/packaging/hgpackaging/py2exe.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/contrib/packaging/hgpackaging/py2exe.py b/contrib/packaging/hgpackaging/py2exe.py
--- a/contrib/packaging/hgpackaging/py2exe.py
+++ b/contrib/packaging/hgpackaging/py2exe.py
@@ -52,6 +52,11 @@ 
     ('COPYING', 'Copying.txt'),
 ]
 
+# List of paths to exclude from the staging area.
+STAGING_EXCLUDES = [
+    'doc/hg-ssh.8.html',
+]
+
 
 def build_py2exe(
     source_dir: pathlib.Path,
@@ -212,3 +217,10 @@ 
     files.
     """
     process_install_rules(STAGING_RULES, source_dir, staging_dir)
+
+    # Purge any files we don't want to be there.
+    for f in STAGING_EXCLUDES:
+        p = staging_dir / f
+        if p.exists():
+            print('removing %s' % p)
+            p.unlink()