rpm: revision for berkeley-db
fix test
This commit is contained in:
parent
dfe848dafb
commit
a823c0e859
1 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,7 @@ class Rpm < Formula
|
||||||
:using => RpmDownloadStrategy
|
:using => RpmDownloadStrategy
|
||||||
version "5.4.15"
|
version "5.4.15"
|
||||||
sha256 "d4ae5e9ed5df8ab9931b660f491418d20ab5c4d72eb17ed9055b80b71ef6c4ee"
|
sha256 "d4ae5e9ed5df8ab9931b660f491418d20ab5c4d72eb17ed9055b80b71ef6c4ee"
|
||||||
|
revision 1
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
sha256 "718f3e01ea9eac8516a4566403627da074b7cc2b20c40d7797828f5fe93bfae7" => :sierra
|
sha256 "718f3e01ea9eac8516a4566403627da074b7cc2b20c40d7797828f5fe93bfae7" => :sierra
|
||||||
|
@ -114,7 +115,8 @@ class Rpm < Formula
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
system "#{bin}/rpm", "-vv", "-qa", "--dbpath=#{testpath}/var/lib/rpm"
|
system "#{bin}/rpm", "-vv", "-qa", "--dbpath=#{testpath}/var/lib/rpm"
|
||||||
assert File.exist?(testpath/"var/lib/rpm/Packages")
|
assert File.exist?(testpath/"var/lib/rpm/sqldb"), "Failed to create 'sqldb' file!"
|
||||||
|
assert_match "Packages", shell_output("sqlite3 #{testpath}/var/lib/rpm/sqldb <<< .tables")
|
||||||
rpmdir("%_builddir").mkpath
|
rpmdir("%_builddir").mkpath
|
||||||
specfile = rpmdir("%_specdir")+"test.spec"
|
specfile = rpmdir("%_specdir")+"test.spec"
|
||||||
specfile.write(test_spec)
|
specfile.write(test_spec)
|
||||||
|
|
Loading…
Reference in a new issue