let's updarte the pharext metadata, too
authorMichael Wallner <mike@php.net>
Thu, 3 Sep 2015 07:18:31 +0000 (09:18 +0200)
committerMichael Wallner <mike@php.net>
Thu, 3 Sep 2015 07:18:31 +0000 (09:18 +0200)
bin/pharext
bin/pharext.update
src/pharext/Updater.php

index 766c44b56dc65f2553d2e97ba1de90aeca1936ab..292d252ec4e8a66f34ad8503f9dcc9ea7a5037f5 100755 (executable)
Binary files a/bin/pharext and b/bin/pharext differ
index a568e9d781175be6edae8e4bc10da408043278f9..7e0a531fbb29575a6b74f303bd5e69a640938f19 100755 (executable)
Binary files a/bin/pharext.update and b/bin/pharext.update differ
index bee5ed6e71f730be22c3d38d08922e912e8e5263..7da989db9db0c5147d83e3d0780560f881b1de21 100644 (file)
@@ -109,6 +109,11 @@ class Updater implements Command
                }
                
                $phar->stopBuffering();
+
+               $phar->setMetadata([
+                       "version" => Metadata::version(),
+                       "header" => Metadata::header(),
+               ] + $phar->getMetadata());
        }
 
        private function updatePackage(SplFileInfo $file, Phar $phar = null) {