fixing some misc stuff
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1577 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
@@ -5612,14 +5612,14 @@ class FtpInterface:
|
||||
continue
|
||||
|
||||
self.Entropy.updateProgress(
|
||||
"[ftp:%s] connecting with user: %s" % (bold(self.ftphost),blue(self.ftpuser),),
|
||||
"[ftp:%s] connecting with user: %s" % (darkgreen(self.ftphost),blue(self.ftpuser),),
|
||||
importance = 1,
|
||||
type = "info",
|
||||
header = darkgreen(" * ")
|
||||
)
|
||||
self.ftpconn.login(self.ftpuser,self.ftppassword)
|
||||
self.Entropy.updateProgress(
|
||||
"[ftp:%s] switching to: %s" % (bold(self.ftphost),blue(self.ftpdir),),
|
||||
"[ftp:%s] switching to: %s" % (darkgreen(self.ftphost),blue(self.ftpdir),),
|
||||
importance = 1,
|
||||
type = "info",
|
||||
header = darkgreen(" * ")
|
||||
@@ -5646,14 +5646,14 @@ class FtpInterface:
|
||||
raise
|
||||
continue
|
||||
self.Entropy.updateProgress(
|
||||
"[ftp:%s] reconnecting with user: %s" % (bold(self.ftphost),blue(self.ftpuser),),
|
||||
"[ftp:%s] reconnecting with user: %s" % (darkgreen(self.ftphost),blue(self.ftpuser),),
|
||||
importance = 1,
|
||||
type = "info",
|
||||
header = darkgreen(" * ")
|
||||
)
|
||||
self.ftpconn.login(self.ftpuser,self.ftppassword)
|
||||
self.Entropy.updateProgress(
|
||||
"[ftp:%s] switching to: %s" % (bold(self.ftphost),blue(self.ftpdir),),
|
||||
"[ftp:%s] switching to: %s" % (darkgreen(self.ftphost),blue(self.ftpdir),),
|
||||
importance = 1,
|
||||
type = "info",
|
||||
header = darkgreen(" * ")
|
||||
@@ -5675,7 +5675,7 @@ class FtpInterface:
|
||||
|
||||
def setCWD(self,mydir):
|
||||
self.Entropy.updateProgress(
|
||||
"[ftp:%s] switching to: %s" % (bold(self.ftphost),blue(mydir),),
|
||||
"[ftp:%s] switching to: %s" % (darkgreen(self.ftphost),blue(mydir),),
|
||||
importance = 1,
|
||||
type = "info",
|
||||
header = darkgreen(" * ")
|
||||
|
||||
@@ -36,8 +36,10 @@ except:
|
||||
stuff['cleanline'] = ""
|
||||
def setcols():
|
||||
stuff['cleanline'] = ""
|
||||
for x in range(stuff['cols']):
|
||||
count = stuff['cols']
|
||||
while count:
|
||||
stuff['cleanline'] += ' '
|
||||
count -= 1
|
||||
setcols()
|
||||
stuff['cursor'] = False
|
||||
stuff['ESC'] = chr(27)
|
||||
|
||||
@@ -39,9 +39,10 @@ def query(myopts):
|
||||
|
||||
if cmd == "search":
|
||||
|
||||
dbconn = Entropy.openServerDatabase(just_reading = True)
|
||||
# open read only
|
||||
count = 0
|
||||
for mykeyword in mykeywords:
|
||||
for mykeyword in myopts:
|
||||
results = dbconn.searchPackages(mykeyword)
|
||||
for result in results:
|
||||
count += 1
|
||||
|
||||
Reference in New Issue
Block a user