Commit 84fddb2d authored by AlmAck's avatar AlmAck
Browse files

fix akabei-db-import script, pacman now provides a file called...

fix akabei-db-import script, pacman now provides a file called ALPM_DB_VERSION(and not a folder) in the /var/lib/pacman/local directory.
parent c1944d05
......@@ -76,27 +76,28 @@ def parseLocalDatabase(path):
for pkgDir in os.listdir(path):
pkgPath = concatenatePaths(path, pkgDir)
for pkgFile in os.listdir(pkgPath):
if pkgFile == "desc":
desc = concatenatePaths(pkgPath, pkgFile)
elif pkgFile == "install":
install = concatenatePaths(pkgPath, pkgFile)
elif pkgFile == "files":
files = concatenatePaths(pkgPath, pkgFile)
progress += step # update progress
if progress == 100:
progressReach100 = True
# progress can surpass 100 by little quantities
# this is seen when the progress bar reaching 100% but the cycle is still working on the last packages
if progress <= 100:
showProgress(progress)
# Calls the package parser
parser = PacmanPackageParser(desc, install, files)
packages.append(parser.getPackage())
if os.path.isdir(pkgPath)
for pkgFile in os.listdir(pkgPath):
if pkgFile == "desc":
desc = concatenatePaths(pkgPath, pkgFile)
elif pkgFile == "install":
install = concatenatePaths(pkgPath, pkgFile)
elif pkgFile == "files":
files = concatenatePaths(pkgPath, pkgFile)
progress += step # update progress
if progress == 100:
progressReach100 = True
# progress can surpass 100 by little quantities
# this is seen when the progress bar reaching 100% but the cycle is still working on the last packages
if progress <= 100:
showProgress(progress)
# Calls the package parser
parser = PacmanPackageParser(desc, install, files)
packages.append(parser.getPackage())
# show last progress in case the progress never became exactly 100 (almost always)
# If you remove the condition block, if progress reaches 100 then two bars will be displayed.
......
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