Verified Commit b1fb1e69 authored by Oskar Roesler's avatar Oskar Roesler
Browse files

Only run sed if file exists

parent 923d5ef6
......@@ -28,7 +28,8 @@ class Routines:
return config
def delete_package_line(self, file):
sed.rmlinematch(self.package, file)
if os.path.isfile(file):
sed.rmlinematch(self.package, file)
def build_metainfo_dict():
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment