summaryrefslogtreecommitdiffstats
path: root/layman/db.py
diff options
context:
space:
mode:
Diffstat (limited to 'layman/db.py')
-rw-r--r--layman/db.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/layman/db.py b/layman/db.py
index db4a4c5..90cd87e 100644
--- a/layman/db.py
+++ b/layman/db.py
@@ -265,6 +265,11 @@ class RemoteDB(Overlays):
mpath = self.path(url)
+ # Check for sufficient privileges
+ if not os.access(mpath, os.W_OK):
+ OUT.warn('You do not have permission to update the cache')
+ return
+
try:
# Fetch the remote list