[DRE-commits] [atig] 01/03: Fix RC: db.execute VACUUM for empty db (Closes: #841574)

Youhei SASAKI uwabami-guest at moszumanska.debian.org
Thu Nov 10 11:57:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

uwabami-guest pushed a commit to branch master
in repository atig.

commit fe023a7e0dd1bdbe82174eb5f9367d0c8fb0edb0
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date:   Thu Nov 10 20:28:16 2016 +0900

    Fix RC: db.execute VACUUM for empty db (Closes: #841574)
    
    Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
---
 ...01-Drop-Bundler-and-RubyGems-dependencies.patch |  6 +++++-
 ...Disable-update-checker-for-Debian-Package.patch | 10 +++++++++-
 .../0003-Replace-git-execution-from-gemspec.patch  |  4 +++-
 ...execute-VACUUM-for-empty-db-Closes-841574.patch | 22 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 5 files changed, 40 insertions(+), 3 deletions(-)

diff --git a/debian/patches/0001-Drop-Bundler-and-RubyGems-dependencies.patch b/debian/patches/0001-Drop-Bundler-and-RubyGems-dependencies.patch
index af9c7f9..6364111 100644
--- a/debian/patches/0001-Drop-Bundler-and-RubyGems-dependencies.patch
+++ b/debian/patches/0001-Drop-Bundler-and-RubyGems-dependencies.patch
@@ -8,9 +8,11 @@ Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
  spec/spec_helper.rb | 6 +++++-
  2 files changed, 5 insertions(+), 2 deletions(-)
 
+diff --git a/atig.gemspec b/atig.gemspec
+index 1e53526..d28e60d 100644
 --- a/atig.gemspec
 +++ b/atig.gemspec
-@@ -23,7 +23,6 @@
+@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
    spec.add_dependency 'oauth'
    spec.add_dependency 'twitter-text'
  
@@ -18,6 +20,8 @@ Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
    spec.add_development_dependency 'rake'
    spec.add_development_dependency 'rspec'
    spec.add_development_dependency 'coveralls'
+diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
+index 39a4f10..b7233c5 100644
 --- a/spec/spec_helper.rb
 +++ b/spec/spec_helper.rb
 @@ -1,5 +1,9 @@
diff --git a/debian/patches/0002-Disable-update-checker-for-Debian-Package.patch b/debian/patches/0002-Disable-update-checker-for-Debian-Package.patch
index a2a317a..07177e1 100644
--- a/debian/patches/0002-Disable-update-checker-for-Debian-Package.patch
+++ b/debian/patches/0002-Disable-update-checker-for-Debian-Package.patch
@@ -11,6 +11,8 @@ Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
  delete mode 100644 lib/atig/update_checker.rb
  delete mode 100644 spec/update_checker_spec.rb
 
+diff --git a/lib/atig/channel/timeline.rb b/lib/atig/channel/timeline.rb
+index 0ef28bc..3f4d982 100644
 --- a/lib/atig/channel/timeline.rb
 +++ b/lib/atig/channel/timeline.rb
 @@ -2,7 +2,7 @@
@@ -22,7 +24,7 @@ Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
  
  module Atig
    module Channel
-@@ -23,19 +23,19 @@
+@@ -23,19 +23,19 @@ module Atig
            end
          end
  
@@ -55,6 +57,9 @@ Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
  
          db.statuses.listen do|entry|
            if db.followings.include?(entry.user) or
+diff --git a/lib/atig/update_checker.rb b/lib/atig/update_checker.rb
+deleted file mode 100644
+index 1125c3b..0000000
 --- a/lib/atig/update_checker.rb
 +++ /dev/null
 @@ -1,56 +0,0 @@
@@ -114,6 +119,9 @@ Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
 -    module_function :latest, :commits, :server_version, :local_repos?, :git?, :git_repos?
 -  end
 -end
+diff --git a/spec/update_checker_spec.rb b/spec/update_checker_spec.rb
+deleted file mode 100644
+index bfe2e0c..0000000
 --- a/spec/update_checker_spec.rb
 +++ /dev/null
 @@ -1,54 +0,0 @@
diff --git a/debian/patches/0003-Replace-git-execution-from-gemspec.patch b/debian/patches/0003-Replace-git-execution-from-gemspec.patch
index 445b2a1..386c586 100644
--- a/debian/patches/0003-Replace-git-execution-from-gemspec.patch
+++ b/debian/patches/0003-Replace-git-execution-from-gemspec.patch
@@ -7,9 +7,11 @@ Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
  atig.gemspec | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
+diff --git a/atig.gemspec b/atig.gemspec
+index d28e60d..18e5ef7 100644
 --- a/atig.gemspec
 +++ b/atig.gemspec
-@@ -11,11 +11,11 @@
+@@ -11,11 +11,11 @@ Gem::Specification.new do |spec|
    spec.description   = %q{Atig.rb is Twitter Irc Gateway.}
    spec.homepage      = "https://github.com/atig/atig"
  
diff --git a/debian/patches/0004-Fix-RC-db.execute-VACUUM-for-empty-db-Closes-841574.patch b/debian/patches/0004-Fix-RC-db.execute-VACUUM-for-empty-db-Closes-841574.patch
new file mode 100644
index 0000000..2245052
--- /dev/null
+++ b/debian/patches/0004-Fix-RC-db.execute-VACUUM-for-empty-db-Closes-841574.patch
@@ -0,0 +1,22 @@
+From: Youhei SASAKI <uwabami at gfd-dennou.org>
+Date: Thu, 10 Nov 2016 20:25:46 +0900
+Subject: Fix RC: db.execute VACUUM for empty db (Closes: #841574)
+
+Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
+---
+ lib/atig/db/statuses.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/atig/db/statuses.rb b/lib/atig/db/statuses.rb
+index 492a9e5..5babf56 100644
+--- a/lib/atig/db/statuses.rb
++++ b/lib/atig/db/statuses.rb
+@@ -123,7 +123,7 @@ module Atig
+           unless created_at.empty? then
+             db.execute "DELETE FROM status WHERE created_at < ?", created_at.first
+           end
+-          db.execute "VACUUM status"
++         # db.execute "VACUUM status"
+         end
+       end
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 0a3b2eb..356e3bb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-Drop-Bundler-and-RubyGems-dependencies.patch
 0002-Disable-update-checker-for-Debian-Package.patch
 0003-Replace-git-execution-from-gemspec.patch
+0004-Fix-RC-db.execute-VACUUM-for-empty-db-Closes-841574.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/atig.git



More information about the Pkg-ruby-extras-commits mailing list