diff options
| author | Remi Collet <remi@remirepo.net> | 2020-12-23 07:53:53 +0100 | 
|---|---|---|
| committer | Remi Collet <remi@remirepo.net> | 2020-12-23 07:53:53 +0100 | 
| commit | 692f99140fbe7f28809277a995f8f6a42557baf4 (patch) | |
| tree | 640af8fbbb66d1dbbc0cf7158e01f21a9cb9718b | |
| parent | f07c11866e82b5195ce23e681afd37c36238409b (diff) | |
fix change dir
| -rwxr-xr-x | mkmodular | 6 | 
1 files changed, 4 insertions, 2 deletions
| @@ -1,6 +1,7 @@  #!/usr/bin/php  <?php -chdir('/home/rpmbuild/site/rpms'); +define('TOPDIR', '/home/rpmbuild/site/rpms'); +chdir(TOPDIR);  $template_php = <<< EOT  --- @@ -320,6 +321,7 @@ function cleanup($dest) {  }  function createRepo($dest, $mod) { +$old = getcwd();  chdir($dest);  exec("mkrepo nocheck noclean"); @@ -330,7 +332,7 @@ exec("modifyrepo_c --mdtype=modules $data repodata >/dev/null");  $arch = basename($dest);  rename($data, "$data.$arch"); -chdir(__DIR__); +chdir($old);  }  if (count($_SERVER['argv']) > 1 && in_array('f30', $_SERVER['argv'])) { | 
