aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2012-11-18 11:11:47 -0800
committerBrian Dolbec <dolsen@gentoo.org>2012-11-18 11:11:47 -0800
commite8e8cd689ccb12c36d27d75b8a4f8f9d8e9c6249 (patch)
tree061423b5e5476379e9f940d870081786b8029b11 /layman/api.py
parentpyflakes cleanup (diff)
downloadlayman-e8e8cd689ccb12c36d27d75b8a4f8f9d8e9c6249.tar.gz
layman-e8e8cd689ccb12c36d27d75b8a4f8f9d8e9c6249.tar.bz2
layman-e8e8cd689ccb12c36d27d75b8a4f8f9d8e9c6249.zip
split out remotedb to it's own file, add gpg signed list support, some pyflakes cleanup
Diffstat (limited to 'layman/api.py')
-rwxr-xr-xlayman/api.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/layman/api.py b/layman/api.py
index 8dda224..11534fd 100755
--- a/layman/api.py
+++ b/layman/api.py
@@ -13,16 +13,16 @@
# Brian Dolbec <dol-sen@sourceforge.net>
#
-from sys import stderr
import os
from layman.config import BareConfig
from layman.dbbase import UnknownOverlayException, UnknownOverlayMessage
-from layman.db import DB, RemoteDB
+from layman.db import DB
+from layman.remotedb import RemoteDB
from layman.overlays.source import require_supported
#from layman.utils import path, delete_empty_directory
-from layman.compatibility import encode, fileopen
+from layman.compatibility import encode
UNKNOWN_REPO_ID = "Repo ID '%s' " + \
@@ -499,8 +499,8 @@ class LaymanAPI(object):
def reload(self):
"""reloads the installed and remote db's to the data on disk"""
- result = self.get_available(dbreload=True)
- result = self.get_installed(dbreload=True)
+ self.get_available(dbreload=True)
+ self.get_installed(dbreload=True)
def _error(self, message):
@@ -599,7 +599,7 @@ def create_fd():
"""
fd_r, fd_w = os.pipe()
write = os.fdopen(fd_w, 'w')
- rread = os.fdopen(fd_r, 'r')
+ read = os.fdopen(fd_r, 'r')
return (read, write, fd_r, fd_w)