diff options
author | simo <simo> | 2005-05-08 02:01:15 +0000 |
---|---|---|
committer | simo <simo> | 2005-05-08 02:01:15 +0000 |
commit | f7a0009ed7ad537606e6ed1b1e4404f1134d8565 (patch) | |
tree | e22c3abae489669126a1f7075d7d3817063deb63 /web/html/pkgsubmit.php | |
parent | f40e1fb77ddb36fd7d35b2ffedd4275db5068748 (diff) | |
download | aurweb-f7a0009ed7ad537606e6ed1b1e4404f1134d8565.tar.xz |
Added ModifiedTS to Packages database
Implemented ModifiedTS such that:
-ModifiedTS changed ONLY when package updated
-SubmittedTS changed ONLY when new package
Also made DummyPkg fixups in tupkgupdate
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r-- | web/html/pkgsubmit.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 6accce6..070de6e 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -344,6 +344,9 @@ if ($_COOKIE["AURSID"]) { $q.= "DummyPkg = 0, "; $q.= "SubmitterUID = ".uid_from_sid($_COOKIE["AURSID"]).", "; $q.= "MaintainerUID = ".uid_from_sid($_COOKIE["AURSID"]).", "; + $q.= "SubmittedTS = UNIX_TIMESTAMP(), "; + } else { + $q.="ModifiedTS = UNIX_TIMESTAMP(), "; } $q.="Name='".mysql_escape_string($new_pkgbuild['pkgname'])."', "; $q.="Version='".mysql_escape_string($new_pkgbuild['pkgver'])."-". |