diff options
author | Judd Vinet <judd@archlinux.org> | 2004-05-06 01:39:42 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2004-05-06 01:39:42 +0000 |
commit | 985b10cd15a230a461a8482de6b7fe134c0046e3 (patch) | |
tree | cffe902ab53f25651cd64d1093bc8c25a4de953c /pkgdb | |
parent | bada0b43fd3c682ad1cfd2b9733649bdc1dd3a49 (diff) |
package updates now automatically mark todo list items completed
Diffstat (limited to 'pkgdb')
-rwxr-xr-x | pkgdb | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,5 @@ #!/bin/bash -# $Id: pkgdb,v 1.12 2004/04/01 21:04:14 judd Exp $ +# $Id: pkgdb,v 1.13 2004/05/06 01:39:42 judd Exp $ tl=`pwd` @@ -35,6 +35,9 @@ UPDATE packages SET categoryid='$categoryid',pkgname='$pkgname',pkgver='$pkgver' pkgrel='$pkgrel',pkgdesc='$pkgdesc',url='$url',sources='$sources', depends='$deplist',needupdate=0,lastupdate=NOW() WHERE id='$id'; _EOF + mysql -u $dbuser -p$dbpass $dbname <<_EOF +UPDATE todolist_pkgs SET complete=1 WHERE pkgid='$id'; +_EOF } insertpkg() |