diff options
author | simo <simo> | 2005-07-01 00:56:40 +0200 |
---|---|---|
committer | simo <simo> | 2005-07-01 00:56:40 +0200 |
commit | a60eb05f133e5d23a860a2409c76d0b9665c6c7a (patch) | |
tree | a75debaea5bc38ee16ac9ba28439007e74029882 /web/html | |
parent | 4666bd8307a5b2716d6e82c3bd47dcd12994b092 (diff) | |
download | aur-a60eb05f133e5d23a860a2409c76d0b9665c6c7a.tar.gz aur-a60eb05f133e5d23a860a2409c76d0b9665c6c7a.tar.xz |
Task #2803 - Tarballs get rebuilt for consistency
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/pkgsubmit.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index ca1bf9f2..4faedd0b 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -297,6 +297,7 @@ if ($_COOKIE["AURSID"]) { # Now, run through the pkgbuild array and do any $pkgname/$pkgver # substituions. # + #TODO: run through and do ALL substitutions, to cover custom vars if (!$error) { $pkgname_var = $pkgbuild["pkgname"]; $pkgver_var = $pkgbuild["pkgver"]; @@ -310,6 +311,20 @@ if ($_COOKIE["AURSID"]) { } } + # Re-tar the package for consistency's sake + # + if (!$error) { + if (!@chdir($INCOMING_DIR.$pkg_name)) { + $error = __("Could not change directory to %s.", + array($INCOMING_DIR.$pkg_name)); + } + } + if (!$error) { + @exec("/bin/sh -c 'tar czf ".$pkg_name.".tar.gz ".$pkg_name."'", $trash, $retval); + if ($retval) { + $error = __("Could not re-tar"); + } + } # update the backend database # if (!$error) { |