From 66f88cd348ef461149ec06f1be1ad99c5d989130 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 21 Nov 2009 20:57:28 +0000 Subject: [PATCH] ensure executable bit is set --- direct/src/plugin/p3dDownload.cxx | 5 +++-- direct/src/plugin/p3dPackage.cxx | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/direct/src/plugin/p3dDownload.cxx b/direct/src/plugin/p3dDownload.cxx index 394a4ad74f..293f26cbe7 100755 --- a/direct/src/plugin/p3dDownload.cxx +++ b/direct/src/plugin/p3dDownload.cxx @@ -168,7 +168,8 @@ download_progress() { if (now - _last_reported_time > 10) { _last_reported_time = now; nout << "Downloading " << get_url() << ": " - << int(get_download_progress() * 1000.0) / 10.0 << "\n"; + << int(get_download_progress() * 1000.0) / 10.0 + << ", " << this << "\n"; } } @@ -184,5 +185,5 @@ void P3DDownload:: download_finished(bool success) { nout << "Downloaded " << get_url() << ": " << int(get_download_progress() * 1000.0) / 10.0 - << ", success = " << success << "\n"; + << ", " << this << ", success = " << success << "\n"; } diff --git a/direct/src/plugin/p3dPackage.cxx b/direct/src/plugin/p3dPackage.cxx index a2ad12084c..6aad3701e5 100755 --- a/direct/src/plugin/p3dPackage.cxx +++ b/direct/src/plugin/p3dPackage.cxx @@ -698,6 +698,9 @@ got_desc_file(TiXmlDocument *doc, bool freshly_downloaded) { nout << "File is incorrect: " << (*ei).get_filename() << "\n"; all_extracts_ok = false; } + + // Make sure all extracts are still marked executable. + chmod((*ei).get_pathname(_package_dir).c_str(), 0555); } if (all_extracts_ok) {