small fixes

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@803 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2007-12-05 14:43:20 +00:00
parent 41dc6d66df
commit 4e7ebfe412
4 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
sqlite_query($db, $sql);
}
$pkgfile = urldecode($_GET['package']);
$pkgfile = rawurldecode($_GET['package']);
$pkgarch = $_GET['arch'];
$pkgpath = "../packages/" . $pkgarch . "/" . $pkgfile;
+1 -1
View File
@@ -453,7 +453,7 @@ def packages(options):
uploadQueueLength += 1
print_info(red(" * ")+blue("Packages that would be ")+red("removed:\t\t\t")+bold(str(removalQueueLength)))
print_info(red(" * ")+blue("Packages that would be ")+yellow("downloaded/moved locally:\t\t")+bold(str(downloadQueueLength)))
print_info(red(" * ")+blue("Packages that would be ")+yellow("downloaded/moved locally:\t")+bold(str(downloadQueueLength)))
print_info(red(" * ")+blue("Packages that would be ")+green("uploaded:\t\t\t")+bold(str(uploadQueueLength)))
print_info(red(" * ")+blue("Total removal ")+red("size:\t\t\t\t")+bold(bytesIntoHuman(str(totalRemovalSize))))
print_info(red(" * ")+blue("Total download ")+yellow("size:\t\t\t\t")+bold(bytesIntoHuman(str(totalDownloadSize))))
+2
View File
@@ -224,6 +224,8 @@ def quickpkg(atom,dirpath):
pkgname = atom.split("/")[1]
pkgcat = atom.split("/")[0]
pkgfile = pkgname+".tbz2"
if not os.path.isdir(dirpath):
os.makedirs(dirpath)
dirpath += "/"+pkgname+".tbz2"
dbdir = getPortageAppDbPath()+"/"+pkgcat+"/"+pkgname+"/"
+2
View File
@@ -53,6 +53,8 @@ def getRemotePackageChecksum(servername, filename, branch):
# does the package has "#" (== tag) ? hackish thing that works
filename = filename.replace("#","%23")
# "+"
filename = filename.replace("+","%2b")
request = url+etpHandlers['md5sum']+filename+"&branch="+branch
remoteLog.log(ETP_LOGPRI_INFO,ETP_LOGLEVEL_VERBOSE,"getRemotePackageChecksum: requested url -> "+request)