[packages/composer/1.0.0-alpha11-dev: 2/7] use bin/compile timestamp as autoload suffix

glen glen at pld-linux.org
Wed Nov 25 21:10:05 CET 2015


commit 9a6d00816b2de17f1f40b0bcd58ec6eefcd8f1aa
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Nov 25 18:33:21 2015 +0200

    use bin/compile timestamp as autoload suffix

 nogit.patch | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/nogit.patch b/nogit.patch
index 84ca650..ff9bc77 100644
--- a/nogit.patch
+++ b/nogit.patch
@@ -25,3 +25,18 @@
          if ($process->run() == 0) {
              $this->version = trim($process->getOutput());
          } else {
+--- composer-1.0.0-14.alpha11/bin/compile~	2015-11-25 18:30:24.000000000 +0200
++++ composer-1.0.0-14.alpha11/bin/compile	2015-11-25 18:32:33.718541181 +0200
+@@ -3,11 +3,7 @@
+ 
+ $cwd = getcwd();
+ chdir(__DIR__.'/../');
+-$ts = rtrim(shell_exec('git log -n1 --pretty=%ct HEAD'));
+-if (!is_numeric($ts)) {
+-    echo 'Could not detect date using "git log -n1 --pretty=%ct HEAD"'.PHP_EOL;
+-    exit(1);
+-}
++$ts = filemtime(__FILE__);
+ // Install with the current version to force it having the right ClassLoader version
+ // Install without dev packages to clean up the included classmap from phpunit classes
+ shell_exec('php bin/composer config autoloader-suffix ComposerPhar' . $ts);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/composer.git/commitdiff/b4e74b61056acbaba0feb842bf6534137b1683a6



More information about the pld-cvs-commit mailing list