From cdf90e427c6ee0c5fca288dbadc6a0ec1d331635 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 14 Jul 2016 20:42:39 +0200 Subject: [PATCH] Fix: Header field name was wrong --- libimagref/src/reference.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimagref/src/reference.rs b/libimagref/src/reference.rs index cd3edca7..a6b6a9ef 100644 --- a/libimagref/src/reference.rs +++ b/libimagref/src/reference.rs @@ -67,7 +67,7 @@ impl<'a> Ref<'a> { } fn read_reference(fle: &FileLockEntry<'a>) -> Result { - match fle.get_header().read("ref.reference") { + match fle.get_header().read("ref.path") { Ok(Some(Value::String(s))) => Ok(PathBuf::from(s)), Ok(Some(_)) => Err(REK::HeaderTypeError.into_error()), Ok(None) => Err(REK::HeaderFieldMissingError.into_error()),