OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-tools Date: 18-Feb-2005 15:16:13
Branch: HEAD Handle: 2005021814161300
Modified files:
openpkg-tools/cmd bf-db.pl
Log:
amend must ensure exact package exists otherwise outdated packge is
kept and color update is lost
Summary:
Revision Changes Path
1.15 +2 -2 openpkg-tools/cmd/bf-db.pl
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-tools/cmd/bf-db.pl
============================================================================
$ cvs diff -u -r1.14 -r1.15 bf-db.pl
--- openpkg-tools/cmd/bf-db.pl 18 Feb 2005 12:40:10 -0000 1.14
+++ openpkg-tools/cmd/bf-db.pl 18 Feb 2005 14:16:13 -0000 1.15
@@ -231,12 +231,12 @@
$sth = $dbh->prepare(
"SELECT st_package_name FROM status WHERE ( " .
" st_inst_host = ? and st_inst_arch = ? and st_inst_os = ?
and st_inst_tag = ? and " .
- " st_package_name = ? );"
+ " st_package_name = ? and st_package_version = ? and
st_package_release = ? );"
);
$retries = $lockretries; do {
$rv = $sth->execute(
$host, $arch, $os, $tag,
- $name
+ $name, $version, $release
);
} while (not $rv and $dbh->errstr =~ m|lock|i and sleep(1) and
$retries-- >= 1);
printf STDERR "DEBUG:$0: countdown from %d to %d\n", $lockretries,
$retries if($opt_verbose or $retries != $lockretries);
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]