fix packaging relative source directories
authorMichael Wallner <mike@php.net>
Fri, 15 Jan 2021 13:25:28 +0000 (14:25 +0100)
committerMichael Wallner <mike@php.net>
Fri, 15 Jan 2021 13:25:28 +0000 (14:25 +0100)
src/pharext/Packager.php

index 23bcdc9999c52906cf6edcf0254789503c84500e..589e232c3a79cad5cd371f61acc790668bfef2f9 100644 (file)
@@ -202,6 +202,7 @@ class Packager implements Command
                        }
                        throw new Exception($error);
                }
+               $source = $real;
                if (!is_dir($real)) {
                        $source = $this->extract($real);
                        $this->cleanup[] = new Task\Cleanup($source);