summaryrefslogtreecommitdiffstats
path: root/pkgdb
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-05-06 03:39:42 +0200
committerJudd Vinet <judd@archlinux.org>2004-05-06 03:39:42 +0200
commit985b10cd15a230a461a8482de6b7fe134c0046e3 (patch)
treecffe902ab53f25651cd64d1093bc8c25a4de953c /pkgdb
parentbada0b43fd3c682ad1cfd2b9733649bdc1dd3a49 (diff)
downloaddbscripts-985b10cd15a230a461a8482de6b7fe134c0046e3.tar.gz
dbscripts-985b10cd15a230a461a8482de6b7fe134c0046e3.tar.xz
package updates now automatically mark todo list items completed
Diffstat (limited to 'pkgdb')
-rwxr-xr-xpkgdb5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgdb b/pkgdb
index 4ccb54f..5d05a65 100755
--- a/pkgdb
+++ b/pkgdb
@@ -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()