summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2018-01-31 12:30:57 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2018-01-31 12:30:57 -0800
commitc55c4881a827b5a55788160c177c46e5b3a70408 (patch)
tree00ab17c12a8f1f75d0a2b200230758fea9673516
parentChange secrets dist to pull from env. (diff)
downloadpackages-5-c55c4881a827b5a55788160c177c46e5b3a70408.tar.gz
packages-5-c55c4881a827b5a55788160c177c46e5b3a70408.tar.bz2
packages-5-c55c4881a827b5a55788160c177c46e5b3a70408.zip
Newer ruby does not have Digest::MD5 built-inv5.0.3
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--lib/portage/repository/category.rb3
-rw-r--r--lib/portage/repository/ebuild.rb1
-rw-r--r--lib/portage/repository/package.rb1
-rw-r--r--lib/portage/util/metadata.rb1
-rw-r--r--lib/portage/util/metadata_cache.rb1
5 files changed, 6 insertions, 1 deletions
diff --git a/lib/portage/repository/category.rb b/lib/portage/repository/category.rb
index 1f70a97..a632cbb 100644
--- a/lib/portage/repository/category.rb
+++ b/lib/portage/repository/category.rb
@@ -1,3 +1,4 @@
+require 'digest'
class Portage::Repository::Category
attr_reader :name, :path
@@ -88,4 +89,4 @@ class Portage::Repository::Category
File.directory?(d) and File.file?(File.join(d, 'metadata.xml'))
end
end
-end \ No newline at end of file
+end
diff --git a/lib/portage/repository/ebuild.rb b/lib/portage/repository/ebuild.rb
index fff3f4b..5c783ff 100644
--- a/lib/portage/repository/ebuild.rb
+++ b/lib/portage/repository/ebuild.rb
@@ -1,3 +1,4 @@
+require 'digest'
class Portage::Repository::Ebuild
attr_reader :package, :name, :path, :version, :category, :repo_root
diff --git a/lib/portage/repository/package.rb b/lib/portage/repository/package.rb
index 55c443f..ab52103 100644
--- a/lib/portage/repository/package.rb
+++ b/lib/portage/repository/package.rb
@@ -1,3 +1,4 @@
+require 'digest'
class Portage::Repository::Package
attr_reader :category, :name, :path
diff --git a/lib/portage/util/metadata.rb b/lib/portage/util/metadata.rb
index fd44041..116cb72 100644
--- a/lib/portage/util/metadata.rb
+++ b/lib/portage/util/metadata.rb
@@ -1,3 +1,4 @@
+require 'digest'
class Portage::Util::Metadata
def initialize(file)
@metadata = {}
diff --git a/lib/portage/util/metadata_cache.rb b/lib/portage/util/metadata_cache.rb
index 945fc3a..ec2ada3 100644
--- a/lib/portage/util/metadata_cache.rb
+++ b/lib/portage/util/metadata_cache.rb
@@ -1,3 +1,4 @@
+require 'digest'
class Portage::Util::MetadataCache
# Parses the metadata cache entries for the given ebuild
#