[mame] 07/08: Don't chmod data dirs unconditionally.

Jordi Mallach jordi at moszumanska.debian.org
Sun May 1 00:12:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

jordi pushed a commit to branch master
in repository mame.

commit d2ea72f1459d6ec68f223ccb3d1f44a7c2069503
Author: Jordi Mallach <jordi at debian.org>
Date:   Sun May 1 01:51:54 2016 +0200

    Don't chmod data dirs unconditionally.
    
    Use `find -type f` instead to avoid installing dirs with wrong perms.
---
 debian/changelog | 2 ++
 debian/rules     | 8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5e31ce2..556358f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,8 @@ mame (0.173-1) UNRELEASED; urgency=medium
   * Don't install testkeys, as it no longer exists.
   * Don't try to cleanup rapidjson non-free bits that are now gone upstream.
   * Install manpages from new source location.
+  * Don't chmod data dirs unconditionally, use `find -type f` instead to
+    avoid installing dirs with wrong perms.
 
  -- Cesare Falco <c.falco at ubuntu.com>  Tue, 19 Apr 2016 12:32:27 +0200
 
diff --git a/debian/rules b/debian/rules
index 007ad60..1a45746 100755
--- a/debian/rules
+++ b/debian/rules
@@ -154,10 +154,10 @@ override_dh_install:
 
 override_dh_fixperms-indep:
 	dh_fixperms
-	chmod 644 debian/mame-data/usr/share/games/mame/artwork/*
-	chmod 644 debian/mame-data/usr/share/games/mame/ctrlr/*
-	chmod 644 debian/mame-data/usr/share/games/mame/hash/*
-	chmod 644 debian/mame-data/usr/share/games/mame/keymaps/*
+	find debian/mame-data/usr/share/games/mame/artwork -type f -execdir chmod 644 {} \;
+	find debian/mame-data/usr/share/games/mame/ctrlr -type f -execdir chmod 644 {} \;
+	find debian/mame-data/usr/share/games/mame/hash -type f -execdir chmod 644 {} \;
+	find debian/mame-data/usr/share/games/mame/keymaps -type f -execdir chmod 644 {} \;
 
 
 # Retrieve source from svn repo (recommended by upstream developers)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mame.git



More information about the Pkg-games-commits mailing list