Skip to content

Commit

Permalink
Always consider the db stale if reading from pkgng
Browse files Browse the repository at this point in the history
Issue:	#41
  • Loading branch information
bdrewery committed Jul 17, 2013
1 parent ab2939f commit 9b27986
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pkgtools/pkgdbtools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def db_driver=(new_db_driver)
alias set_db_driver db_driver=

def date_db_file
return Time.at(0) if $pkgdb.with_pkgng?
File.mtime(@db_file) rescue Time.at(0)
end

Expand Down

0 comments on commit 9b27986

Please sign in to comment.