Hello community, here is the log from the commit of package go-gosqlite for openSUSE:Factory checked in at 2012-03-08 19:43:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/go-gosqlite (Old) and /work/SRC/openSUSE:Factory/.go-gosqlite.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "go-gosqlite", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/go-gosqlite/go-gosqlite.changes 2012-01-19 16:55:36.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.go-gosqlite.new/go-gosqlite.changes 2012-03-08 19:43:30.000000000 +0100 @@ -1,0 +2,6 @@ +Wed Mar 7 21:31:26 UTC 2012 - [email protected] + +- update for latest weekly.2012-03-04 +- update spec for new go macros + +------------------------------------------------------------------- Old: ---- gosqlite-0.0.0+hg20120110.tar.bz2 gosqlite-weekly-fixes.patch New: ---- gosqlite-0.0.0+hg20120304.tar.bz2 weekly-fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ go-gosqlite.spec ++++++ --- /var/tmp/diff_new_pack.AW0jcQ/_old 2012-03-08 19:43:32.000000000 +0100 +++ /var/tmp/diff_new_pack.AW0jcQ/_new 2012-03-08 19:43:32.000000000 +0100 @@ -17,7 +17,7 @@ # Name: go-gosqlite -Version: 0.0.0+hg20120110 +Version: 0.0.0+hg20120304 Release: 0 Summary: Trivial SQLite binding for Go License: BSD-3-Clause @@ -26,7 +26,7 @@ Source0: gosqlite-%{version}.tar.bz2 Source1: LICENSE Source2: Makefile -Patch0: gosqlite-weekly-fixes.patch +Patch0: weekly-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: go-devel %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} @@ -50,8 +50,12 @@ cp %{SOURCE2} ./sqlite %build +%goprep code.google.com/p/gosqlite +%gofix code.google.com/p/gosqlite +%gobuild sqlite + %install -cd sqlite && %{go_make_install} +%goinstall %files %defattr(-,root,root,-) ++++++ gosqlite-0.0.0+hg20120110.tar.bz2 -> gosqlite-0.0.0+hg20120304.tar.bz2 ++++++ ++++++ weekly-fix.patch ++++++ diff --git a/sqlite/sqlite.go b/sqlite/sqlite.go index 808c441..10d4d94 100644 --- a/sqlite/sqlite.go +++ b/sqlite/sqlite.go @@ -32,11 +32,11 @@ import "C" import ( "errors" "fmt" - "os" "reflect" "strconv" "unsafe" "time" + "syscall" ) type Errno int @@ -198,14 +198,14 @@ func (b *Backup) Run(npage int, sleepNs int64, c chan<- BackupStatus) error { if c != nil { c <- b.Status() } - time.Sleep(sleepNs) + time.Sleep(time.Duration(sleepNs)) } return b.dst.error(C.sqlite3_errcode(b.dst.db)) } func (b *Backup) Close() error { if b.sb == nil { - return os.EINVAL + return syscall.EINVAL } C.sqlite3_backup_finish(b.sb) b.sb = nil @@ -258,7 +258,7 @@ func (c *Conn) Prepare(cmd string) (*Stmt, error) { if rv != 0 { return nil, c.error(rv) } - return &Stmt{c: c, stmt: stmt, sql: cmd, t0: time.Nanoseconds()}, nil + return &Stmt{c: c, stmt: stmt, sql: cmd, t0: time.Now().UnixNano()}, nil } func (s *Stmt) Exec(args ...interface{}) error { @@ -358,13 +358,13 @@ func (s *Stmt) Scan(args ...interface{}) error { } *v = x case *int64: - x, err := strconv.Atoi64(string(data)) + x, err := strconv.ParseInt(string(data), 10, 64) if err != nil { return errors.New("arg " + strconv.Itoa(i) + " as int64: " + err.Error()) } *v = x case *float64: - x, err := strconv.Atof64(string(data)) + x, err := strconv.ParseFloat(string(data), 64) if err != nil { return errors.New("arg " + strconv.Itoa(i) + " as float64: " + err.Error()) } @@ -381,7 +381,7 @@ func (s *Stmt) SQL() string { } func (s *Stmt) Nanoseconds() int64 { - return time.Nanoseconds() - s.t0 + return time.Now().UnixNano() - s.t0 } func (s *Stmt) Finalize() error { -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
