From 5ed5cfcde267486fbb9bb9aff3cb81b3f39388eb Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Jun 28 2018 10:15:46 +0000 Subject: Merge #344 `Give more information when sources has invalid content` --- diff --git a/pyrpkg/sources.py b/pyrpkg/sources.py index 249c4ee..e9536c4 100644 --- a/pyrpkg/sources.py +++ b/pyrpkg/sources.py @@ -66,7 +66,10 @@ class SourcesFile(object): hash, file = stripped.split(' ', 1) except ValueError: - raise MalformedLineError(line) + raise MalformedLineError( + 'sources has invalid content: {0}\n' + 'Please note that sources file must not be modified manually.' + .format(stripped)) return self.entry_type('md5', file, hash)