Kaydet (Commit) 4805bfff authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Filesdb son kez degistirildi. marcin hayran oldum leveldb based filesdb modulune

üst 938851a7
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016 - 2018, Suleyman POYRAZ (Zaryob)
# Copyright (C) 2016 - 2018, Suleyman POYRAZ (AquilaNipalensis)
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
......@@ -13,45 +13,25 @@
import os
import re
import hashlib
try:
import shelve
except ImportError:
raise Exception(_("FilesDB broken: Shelve module not imported."))
import gettext
__trans = gettext.translation('inary', fallback=True)
_ = __trans.gettext
import inary
import inary.db.lazydb as lazydb
import inary.context as ctx
# FIXME:
# We could traverse through files.xml files of the packages to find the path and
# the package - a linear search - as some well known package managers do. But the current
# file conflict mechanism of inary prevents this and needs a fast has_file function.
# So currently filesdb is the only db and we cant still get rid of rebuild-db :/
class FilesDB(lazydb.LazyDB):
class FilesDB():
def __init__(self):
self.filesdb={}
self.filesdb_path = os.path.join(ctx.config.info_dir(), ctx.const.files_db)
#if not [f for f in os.listdir(self.filesdb_path) if f.endswith('.db')]:
# if ctx.scom: self.destroy()
# self.create_filesdb()
if isinstance(self.filesdb, shelve.DbfilenameShelf):
return
if not os.path.exists(self.filesdb_path):
flag = "n"
elif os.access(self.filesdb_path, os.W_OK):
flag = "w"
else:
flag = "r"
self.filesdb = shelve.open(self.filesdb_path, flag=flag)
try:
import plyvel
except ImportError:
raise ImportError(_("LevelDB not found! Please install LevelDB and plyvel!"))
self.files_ldb_path = os.path.join(ctx.config.info_dir(), ctx.const.files_ldb)
self.filesdb = plyvel.DB(self.files_ldb_path, create_if_missing=True)
if not [f for f in os.listdir(self.files_ldb_path) if f.endswith('.ldb')]:
if ctx.scom: self.destroy()
self.create_filesdb()
def __del__(self):
self.close()
......@@ -60,54 +40,43 @@ class FilesDB(lazydb.LazyDB):
ctx.ui.info(inary.util.colorize(_('Creating files database...'), 'blue'))
installdb = inary.db.installdb.InstallDB()
for pkg in installdb.list_installed():
ctx.ui.info(inary.util.colorize(_(' ---> Adding \'{}\' to db... '), 'purple').format(pkg), noln= True)
ctx.ui.info(inary.util.colorize(_(' |___* Adding \'{}\' to db... '), 'purple').format(pkg), noln=True)
files = installdb.get_files(pkg)
self.add_files(pkg, files)
ctx.ui.info(inary.util.colorize(_('OK.'), 'backgroundmagenta'))
ctx.ui.info(inary.util.colorize(_('Added files database...'), 'blue'))
def has_file(self, path):
key= str(hashlib.md5(path.encode('utf-8')).digest())
return key in self.filesdb
def get_file(self, path):
key= str(hashlib.md5(path.encode('utf-8')).digest())
return self.filesdb[key], path
return self.filesdb.get(hashlib.md5(path.encode('utf-8')).digest()), path
def search_file(self, term):
if self.has_file(term):
pkg, path = self.get_file(term)
pkg, path = self.get_file(term)
if pkg:
return [(pkg,[path])]
installdb = inary.db.installdb.InstallDB()
found = []
for pkg in installdb.list_installed():
files_xml = open(os.path.join(installdb.package_path(pkg), ctx.const.files_xml)).read()
paths = re.compile('<Path>(.*?%s.*?)</Path>' % re.escape(term), re.I).findall(files_xml)
paths = re.compile('<Path>(.*?{}.*?)</Path>'.format(re.escape(term)), re.I).findall(files_xml)
if paths:
found.append((pkg, paths))
return found
def add_files(self, pkg, files):
for f in files.list:
print(f)
key= str(hashlib.md5(f.path.encode('utf-8')).digest())
value= str(pkg.encode('utf-8'))
self.filesdb[key] = value
key=bytes(hashlib.md5(f.path.encode('utf-8')).digest())
value= bytes(pkg.encode('utf-8'))
self.filesdb.put(key=key, value=value)
def remove_files(self, files):
for f in files:
key= str(hashlib.md5(f.path.encode('utf-8')).digest())
if key in self.filesdb:
del self.filesdb[key]
self.filesdb.delete(bytes(hashlib.md5(f.path.encode('utf-8')).digest()))
def destroy(self):
self.filesdb_path = os.path.join(ctx.config.info_dir(), ctx.const.files_db)
ctx.ui.info(inary.util.colorize(_('Cleaning files database folder... '), 'green'), noln=True)
if os.path.exists(self.filesdb_path):
os.unlink(self.filesdb_path)
ctx.ui.info(inary.util.colorize(_('Cleaning files database folder... '), 'green'), noln=True)
for f in os.listdir(self.files_ldb_path): os.unlink(os.path.join(self.files_ldb_path, f))
ctx.ui.info(inary.util.colorize(_('done.'), 'green'))
def close(self):
if isinstance(self.filesdb, shelve.DbfilenameShelf):
self.filesdb.close()
if not self.filesdb.closed: self.filesdb.close()
......@@ -795,7 +795,6 @@ def rebuild_db():
inary.api.set_userinterface(ui)
inary.api.set_options(options)
inary.api.set_scom(scom)
ctx.filesdb.create_filesdb()
def calculate_conflicts(*args, **kw):
return inary.conflict.calculate_conflicts(*args, **kw)
......
This diff is collapsed.
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: INARYLinux\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-26 16:30+0300\n"
"POT-Creation-Date: 2018-01-27 23:19+0300\n"
"PO-Revision-Date: 2013-01-04 21:08+0000\n"
"Last-Translator: circass <erdincgultekin@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -2576,43 +2576,38 @@ msgstr "Build Dependencies: "
msgid "Component {} not found"
msgstr "Component {} not found"
#: inary/db/filesdb.py:46 inary/db/filesldb.py:40
#: inary/db/filesdb.py:29
msgid "LevelDB not found! Please install LevelDB and plyvel!"
msgstr ""
#: inary/db/filesdb.py:40
#, fuzzy
msgid "Creating files database..."
msgstr "Rebuild files database"
#: inary/db/filesdb.py:50
#: inary/db/filesdb.py:43
#, fuzzy
msgid " ---> Adding '{}' to db... "
msgid " |___* Adding '{}' to db... "
msgstr "Adding {} to db... "
#: inary/db/filesdb.py:53
#: inary/db/filesdb.py:46
msgid "OK."
msgstr "OK."
#: inary/db/filesdb.py:54 inary/db/filesldb.py:47
#: inary/db/filesdb.py:47
#, fuzzy
msgid "Added files database..."
msgstr "Rebuild files database"
#: inary/db/filesdb.py:84
#: inary/db/filesdb.py:77
#, fuzzy
msgid "Cleaning files database folder... "
msgid "Cleaning files database folder... "
msgstr "Cleaning build directory..."
#: inary/db/filesdb.py:87 inary/db/filesldb.py:79
#: inary/db/filesdb.py:79
msgid "done."
msgstr ""
#: inary/db/filesldb.py:29
msgid "LevelDB not found! Please install LevelDB and plyvel!"
msgstr ""
#: inary/db/filesldb.py:77
#, fuzzy
msgid "Cleaning files database folder... "
msgstr "Cleaning build directory..."
#: inary/db/groupdb.py:66 inary/db/groupdb.py:75
#, fuzzy
msgid "Group {} not found"
......@@ -2666,7 +2661,7 @@ msgstr "Repo item {} not found"
msgid "Repository {} does not exist."
msgstr "Repository {} does not exist."
#: inary/db/packagedb.py:147 inary/db/packagedb.py:154
#: inary/db/packagedb.py:148 inary/db/packagedb.py:155
#, fuzzy
msgid "Package {} not found."
msgstr "Package {} not found."
......@@ -3291,6 +3286,10 @@ msgstr "The following packages will be installed in order to satisfy dependencie
msgid "External dependencies not satisfied"
msgstr "External dependencies not satisfied"
#: inary/operations/install.py:258
msgid "Installation order: "
msgstr "Installation order: "
#: inary/operations/remove.py:44
msgid "Safety switch prevents the removal of following packages:\n"
msgstr "Safety switch prevents the removal of following packages:\n"
......@@ -3637,77 +3636,77 @@ msgstr "LocalText: unable to get either current or default locale"
msgid "Tag should have at least the current locale, or failing that an English or Turkish version"
msgstr "Tag should have at least the current locale, or failing that an English or Turkish version"
#: inary/sxml/autoxml.py:368
#: inary/sxml/autoxml.py:367
#, fuzzy
msgid "autoxml.check: '{}' errors"
msgstr "autoxml.check: {} errors"
#: inary/sxml/autoxml.py:424 inary/sxml/autoxml.py:434
#: inary/sxml/autoxml.py:423 inary/sxml/autoxml.py:433
#, fuzzy
msgid "autoxml.parse: String '{}' has errors"
msgstr "autoxml.parse: String {} has errors"
#: inary/sxml/autoxml.py:448 inary/sxml/autoxml.py:458
#: inary/sxml/autoxml.py:447 inary/sxml/autoxml.py:457
#, fuzzy
msgid "autoxml.read: File '{}' has errors"
msgstr "autoxml.read: File {} has errors"
#: inary/sxml/autoxml.py:466
#: inary/sxml/autoxml.py:465
msgid "autoxml.write: object validation has failed"
msgstr "autoxml.write: object validation has failed"
#: inary/sxml/autoxml.py:474
#: inary/sxml/autoxml.py:473
#, fuzzy
msgid "autoxml.write: File encoding '{}' has errors"
msgstr "autoxml.write: File encoding {} has errors"
#: inary/sxml/autoxml.py:524
#: inary/sxml/autoxml.py:523
#, fuzzy
msgid "gen_tag: unrecognized tag type {} in spec"
msgstr "gen_tag: unrecognized tag type {} in spec"
#: inary/sxml/autoxml.py:571 inary/sxml/autoxml.py:582
#: inary/sxml/autoxml.py:570 inary/sxml/autoxml.py:581
#, fuzzy
msgid "Mandatory variable {} not available"
msgstr "Mandatory variable {} not available"
#: inary/sxml/autoxml.py:652
#: inary/sxml/autoxml.py:651
msgid "Type mismatch: read text cannot be decoded"
msgstr "Type mismatch: read text cannot be decoded"
#: inary/sxml/autoxml.py:656 inary/sxml/autoxml.py:665
#: inary/sxml/autoxml.py:655 inary/sxml/autoxml.py:664
#, fuzzy
msgid "Mandatory token {} not available"
msgstr "Mandatory token {} not available"
#: inary/sxml/autoxml.py:670
#: inary/sxml/autoxml.py:669
#, fuzzy, python-brace-format
msgid "Type mismatch. Expected {0}, got {1}"
msgstr "Type mismatch. Expected {0}, got {1}"
#: inary/sxml/autoxml.py:699 inary/sxml/autoxml.py:819
#: inary/sxml/autoxml.py:698 inary/sxml/autoxml.py:818
msgid "Type mismatch: DOM cannot be decoded"
msgstr "Type mismatch: DOM cannot be decoded"
#: inary/sxml/autoxml.py:702 inary/sxml/autoxml.py:718
#: inary/sxml/autoxml.py:732 inary/sxml/autoxml.py:822
#: inary/sxml/autoxml.py:836 inary/sxml/autoxml.py:850
#: inary/sxml/autoxml.py:701 inary/sxml/autoxml.py:717
#: inary/sxml/autoxml.py:731 inary/sxml/autoxml.py:821
#: inary/sxml/autoxml.py:835 inary/sxml/autoxml.py:849
msgid "Mandatory argument not available"
msgstr "Mandatory argument not available"
#: inary/sxml/autoxml.py:715 inary/sxml/autoxml.py:833
#: inary/sxml/autoxml.py:714 inary/sxml/autoxml.py:832
msgid "Object cannot be encoded"
msgstr "Object cannot be encoded"
#: inary/sxml/autoxml.py:729 inary/sxml/autoxml.py:847
#: inary/sxml/autoxml.py:728 inary/sxml/autoxml.py:846
msgid "Object cannot be formatted"
msgstr "Object cannot be formatted"
#: inary/sxml/autoxml.py:745
#: inary/sxml/autoxml.py:744
msgid "List type must contain only one element"
msgstr "List type must contain only one element"
#: inary/sxml/autoxml.py:758 inary/sxml/autoxml.py:778
#: inary/sxml/autoxml.py:757 inary/sxml/autoxml.py:777
#, fuzzy, python-brace-format
msgid "Mandatory list \"{0}\" under \"{1}\" node is empty."
msgstr "Mandatory list \"{0}\" under \"{1}\" node is empty."
......@@ -3977,38 +3976,39 @@ msgstr "Invalid delta package name: {}"
msgid "Invalid version string: '{}'"
msgstr "Invalid version string: {}"
#~ msgid "long integer"
#~ msgstr "long integer"
#~ msgid "Unable to read file {}: {}"
#~ msgstr "Unable to read file {}: {}"
#~ msgid "{} option requires an argument"
#~ msgstr "{} option requires an argument"
#~ msgid "String {} has invalid XML"
#~ msgstr "String {} has invalid XML"
#~ msgid "INARY package"
#~ msgstr "INARY package"
#~ msgid "No group named {} found on the system"
#~ msgstr "No group named {} found on the system"
#~ msgid "Not removing conflicted file : {}"
#~ msgstr "Not removing conflicted file : {}"
#~ msgid "No user named {} found on the system"
#~ msgstr "No user named {} found on the system"
#~ msgid "Date: {} {}"
#~ msgstr "Date: {} {}"
#~ msgid "Urlgrabber needs to be installed to run this command"
#~ msgstr "Urlgrabber needs to be installed to run this command"
#~ msgid "{} [{}]"
#~ msgstr "{} [{}]"
#~ msgid "Urlgrabber needs to be installed to run this command"
#~ msgstr "Urlgrabber needs to be installed to run this command"
#~ msgid "Date: {} {}"
#~ msgstr "Date: {} {}"
#~ msgid "No user named {} found on the system"
#~ msgstr "No user named {} found on the system"
#~ msgid "Not removing conflicted file : {}"
#~ msgstr "Not removing conflicted file : {}"
#~ msgid "No group named {} found on the system"
#~ msgstr "No group named {} found on the system"
#~ msgid "INARY package"
#~ msgstr "INARY package"
#~ msgid "Installation order: "
#~ msgstr "Installation order: "
#~ msgid "{} option requires an argument"
#~ msgstr "{} option requires an argument"
#~ msgid "String {} has invalid XML"
#~ msgstr "String {} has invalid XML"
#~ msgid "long integer"
#~ msgstr "long integer"
#~ msgid "Unable to read file {}: {}"
#~ msgstr "Unable to read file {}: {}"
#, fuzzy
#~ msgid "Cleaning files database folder... "
#~ msgstr "Cleaning build directory..."
This diff is collapsed.
This diff is collapsed.
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: inary\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-26 16:30+0300\n"
"POT-Creation-Date: 2018-01-27 23:19+0300\n"
"PO-Revision-Date: 2011-06-11 23:13+0100\n"
"Last-Translator: Ivica Kolić <ikoli@yahoo.com>\n"
"Language-Team: Croatian <ikoli@yahoo.com>\n"
......@@ -2351,43 +2351,38 @@ msgstr ""
msgid "Component {} not found"
msgstr "Komponenta {} nije nađena"
#: inary/db/filesdb.py:46 inary/db/filesldb.py:40
#: inary/db/filesdb.py:29
msgid "LevelDB not found! Please install LevelDB and plyvel!"
msgstr ""
#: inary/db/filesdb.py:40
#, fuzzy
msgid "Creating files database..."
msgstr "Obnovi bazu podataka datoteka"
#: inary/db/filesdb.py:50
#: inary/db/filesdb.py:43
#, fuzzy
msgid " ---> Adding '{}' to db... "
msgid " |___* Adding '{}' to db... "
msgstr "Dodajem {} u db... "
#: inary/db/filesdb.py:53
#: inary/db/filesdb.py:46
msgid "OK."
msgstr "U redu"
#: inary/db/filesdb.py:54 inary/db/filesldb.py:47
#: inary/db/filesdb.py:47
#, fuzzy
msgid "Added files database..."
msgstr "Obnovi bazu podataka datoteka"
#: inary/db/filesdb.py:84
#: inary/db/filesdb.py:77
#, fuzzy
msgid "Cleaning files database folder... "
msgid "Cleaning files database folder... "
msgstr "Obnovi bazu podataka datoteka"
#: inary/db/filesdb.py:87 inary/db/filesldb.py:79
#: inary/db/filesdb.py:79
msgid "done."
msgstr ""
#: inary/db/filesldb.py:29
msgid "LevelDB not found! Please install LevelDB and plyvel!"
msgstr ""
#: inary/db/filesldb.py:77
#, fuzzy
msgid "Cleaning files database folder... "
msgstr "Obnovi bazu podataka datoteka"
#: inary/db/groupdb.py:66 inary/db/groupdb.py:75
#, fuzzy
msgid "Group {} not found"
......@@ -2439,7 +2434,7 @@ msgstr "Stavka repozitorija {} nije nađena"
msgid "Repository {} does not exist."
msgstr "repozitorij {} ne postoji."
#: inary/db/packagedb.py:147 inary/db/packagedb.py:154
#: inary/db/packagedb.py:148 inary/db/packagedb.py:155
#, fuzzy
msgid "Package {} not found."
msgstr "Paket {} nije nađen."
......@@ -3036,6 +3031,10 @@ msgstr "Sljedeći paketi će biti instalirani kako bi se zadovoljile zavisnosti:
msgid "External dependencies not satisfied"
msgstr "Vanjske zavisnosti nisu zadovoljene"
#: inary/operations/install.py:258
msgid "Installation order: "
msgstr "Redoslijed instaliranja:"
#: inary/operations/remove.py:44
msgid "Safety switch prevents the removal of following packages:\n"
msgstr ""
......@@ -3365,70 +3364,70 @@ msgstr ""
msgid "Tag should have at least the current locale, or failing that an English or Turkish version"
msgstr ""
#: inary/sxml/autoxml.py:368
#: inary/sxml/autoxml.py:367
msgid "autoxml.check: '{}' errors"
msgstr ""
#: inary/sxml/autoxml.py:424 inary/sxml/autoxml.py:434
#: inary/sxml/autoxml.py:423 inary/sxml/autoxml.py:433
msgid "autoxml.parse: String '{}' has errors"
msgstr ""
#: inary/sxml/autoxml.py:448 inary/sxml/autoxml.py:458
#: inary/sxml/autoxml.py:447 inary/sxml/autoxml.py:457
msgid "autoxml.read: File '{}' has errors"
msgstr ""
#: inary/sxml/autoxml.py:466
#: inary/sxml/autoxml.py:465
msgid "autoxml.write: object validation has failed"
msgstr ""
#: inary/sxml/autoxml.py:474
#: inary/sxml/autoxml.py:473
msgid "autoxml.write: File encoding '{}' has errors"
msgstr ""
#: inary/sxml/autoxml.py:524
#: inary/sxml/autoxml.py:523
msgid "gen_tag: unrecognized tag type {} in spec"
msgstr ""
#: inary/sxml/autoxml.py:571 inary/sxml/autoxml.py:582
#: inary/sxml/autoxml.py:570 inary/sxml/autoxml.py:581
msgid "Mandatory variable {} not available"
msgstr ""
#: inary/sxml/autoxml.py:652
#: inary/sxml/autoxml.py:651
msgid "Type mismatch: read text cannot be decoded"
msgstr ""
#: inary/sxml/autoxml.py:656 inary/sxml/autoxml.py:665
#: inary/sxml/autoxml.py:655 inary/sxml/autoxml.py:664
msgid "Mandatory token {} not available"
msgstr ""
#: inary/sxml/autoxml.py:670
#: inary/sxml/autoxml.py:669
#, fuzzy, python-brace-format
msgid "Type mismatch. Expected {0}, got {1}"
msgstr "Neslaganje tipa. Očekivani {0}, dobiveni {1} "
#: inary/sxml/autoxml.py:699 inary/sxml/autoxml.py:819
#: inary/sxml/autoxml.py:698 inary/sxml/autoxml.py:818
msgid "Type mismatch: DOM cannot be decoded"
msgstr "Neslaganje tipa: DOM se ne može dekodirati"
#: inary/sxml/autoxml.py:702 inary/sxml/autoxml.py:718
#: inary/sxml/autoxml.py:732 inary/sxml/autoxml.py:822
#: inary/sxml/autoxml.py:836 inary/sxml/autoxml.py:850
#: inary/sxml/autoxml.py:701 inary/sxml/autoxml.py:717
#: inary/sxml/autoxml.py:731 inary/sxml/autoxml.py:821
#: inary/sxml/autoxml.py:835 inary/sxml/autoxml.py:849
msgid "Mandatory argument not available"
msgstr ""
#: inary/sxml/autoxml.py:715 inary/sxml/autoxml.py:833
#: inary/sxml/autoxml.py:714 inary/sxml/autoxml.py:832
msgid "Object cannot be encoded"
msgstr "Objekt ne može biti kodiran"
#: inary/sxml/autoxml.py:729 inary/sxml/autoxml.py:847
#: inary/sxml/autoxml.py:728 inary/sxml/autoxml.py:846
msgid "Object cannot be formatted"
msgstr "Objekt ne može biti formiran"
#: inary/sxml/autoxml.py:745
#: inary/sxml/autoxml.py:744
msgid "List type must contain only one element"
msgstr ""
#: inary/sxml/autoxml.py:758 inary/sxml/autoxml.py:778
#: inary/sxml/autoxml.py:757 inary/sxml/autoxml.py:777
#, python-brace-format
msgid "Mandatory list \"{0}\" under \"{1}\" node is empty."
msgstr ""
......@@ -3688,27 +3687,28 @@ msgstr "Neispravano ime delta paketa: {}"
msgid "Invalid version string: '{}'"
msgstr ""
#, fuzzy
#~ msgid "Name: {}, version: {}, release: {}\n"
#~ msgstr "Ime:{}, verzija{}, izdanje:%s\n"
#~ msgid "Unable to read file {}: {}"
#~ msgstr "Nije moguće čitati datoteku {}: {}"
#~ msgid "{} option requires an argument"
#~ msgstr "{} opcija zahtijeva argument"
#~ msgid "{} [{}]"
#~ msgstr "{} [{}]"
#~ msgid "INARY package"
#~ msgstr "INARY paket"
#~ msgid "Date: {} {}"
#~ msgstr "Datum: {} {}"
#~ msgid "Not removing conflicted file : {}"
#~ msgstr "Ne uklanjanje sporne datoteke: {}"
#~ msgid "Date: {} {}"
#~ msgstr "Datum: {} {}"
#~ msgid "INARY package"
#~ msgstr "INARY paket"
#~ msgid "{} [{}]"
#~ msgstr "{} [{}]"
#~ msgid "{} option requires an argument"
#~ msgstr "{} opcija zahtijeva argument"
#~ msgid "Installation order: "
#~ msgstr "Redoslijed instaliranja:"
#, fuzzy
#~ msgid "Name: {}, version: {}, release: {}\n"
#~ msgstr "Ime:{}, verzija{}, izdanje:%s\n"
#~ msgid "Unable to read file {}: {}"
#~ msgstr "Nije moguće čitati datoteku {}: {}"
#, fuzzy
#~ msgid "Cleaning files database folder... "
#~ msgstr "Obnovi bazu podataka datoteka"
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: INARYLinux\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-26 16:30+0300\n"
"POT-Creation-Date: 2018-01-27 23:19+0300\n"
"PO-Revision-Date: 2014-02-26 16:34+0000\n"
"Last-Translator: obsoleteman <tulliana@gmail.com>\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/INARYLinux/language/pt_BR/)\n"
......@@ -2213,38 +2213,34 @@ msgstr ""
msgid "Component {} not found"
msgstr ""
#: inary/db/filesdb.py:46 inary/db/filesldb.py:40
#: inary/db/filesdb.py:29
msgid "LevelDB not found! Please install LevelDB and plyvel!"
msgstr ""
#: inary/db/filesdb.py:40
msgid "Creating files database..."
msgstr ""
#: inary/db/filesdb.py:50
msgid " ---> Adding '{}' to db... "
#: inary/db/filesdb.py:43
msgid " |___* Adding '{}' to db... "
msgstr ""
#: inary/db/filesdb.py:53
#: inary/db/filesdb.py:46
msgid "OK."
msgstr ""
#: inary/db/filesdb.py:54 inary/db/filesldb.py:47
#: inary/db/filesdb.py:47
msgid "Added files database..."
msgstr ""
#: inary/db/filesdb.py:84
msgid "Cleaning files database folder... "
#: inary/db/filesdb.py:77
msgid "Cleaning files database folder... "
msgstr ""
#: inary/db/filesdb.py:87 inary/db/filesldb.py:79
#: inary/db/filesdb.py:79
msgid "done."
msgstr ""
#: inary/db/filesldb.py:29
msgid "LevelDB not found! Please install LevelDB and plyvel!"
msgstr ""
#: inary/db/filesldb.py:77
msgid "Cleaning files database folder... "
msgstr ""
#: inary/db/groupdb.py:66 inary/db/groupdb.py:75
msgid "Group {} not found"
msgstr ""
......@@ -2291,7 +2287,7 @@ msgstr "Ficheiro de projeto {} nao foi encontrado. "
msgid "Repository {} does not exist."
msgstr ""
#: inary/db/packagedb.py:147 inary/db/packagedb.py:154
#: inary/db/packagedb.py:148 inary/db/packagedb.py:155
#, fuzzy
msgid "Package {} not found."
msgstr "Ficheiro de projeto {} nao foi encontrado. "
......@@ -2857,6 +2853,10 @@ msgstr ""
msgid "External dependencies not satisfied"
msgstr ""
#: inary/operations/install.py:258
msgid "Installation order: "
msgstr ""
#: inary/operations/remove.py:44
msgid "Safety switch prevents the removal of following packages:\n"
msgstr ""
......@@ -3158,70 +3158,70 @@ msgstr ""
msgid "Tag should have at least the current locale, or failing that an English or Turkish version"
msgstr ""
#: inary/sxml/autoxml.py:368
#: inary/sxml/autoxml.py:367
msgid "autoxml.check: '{}' errors"
msgstr ""
#: inary/sxml/autoxml.py:424 inary/sxml/autoxml.py:434
#: inary/sxml/autoxml.py:423 inary/sxml/autoxml.py:433
msgid "autoxml.parse: String '{}' has errors"
msgstr ""
#: inary/sxml/autoxml.py:448 inary/sxml/autoxml.py:458
#: inary/sxml/autoxml.py:447 inary/sxml/autoxml.py:457
msgid "autoxml.read: File '{}' has errors"
msgstr ""
#: inary/sxml/autoxml.py:466
#: inary/sxml/autoxml.py:465
msgid "autoxml.write: object validation has failed"
msgstr ""
#: inary/sxml/autoxml.py:474
#: inary/sxml/autoxml.py:473
msgid "autoxml.write: File encoding '{}' has errors"
msgstr ""
#: inary/sxml/autoxml.py:524
#: inary/sxml/autoxml.py:523
msgid "gen_tag: unrecognized tag type {} in spec"
msgstr ""
#: inary/sxml/autoxml.py:571 inary/sxml/autoxml.py:582
#: inary/sxml/autoxml.py:570 inary/sxml/autoxml.py:581
msgid "Mandatory variable {} not available"
msgstr ""
#: inary/sxml/autoxml.py:652
#: inary/sxml/autoxml.py:651
msgid "Type mismatch: read text cannot be decoded"
msgstr ""
#: inary/sxml/autoxml.py:656 inary/sxml/autoxml.py:665
#: inary/sxml/autoxml.py:655 inary/sxml/autoxml.py:664
msgid "Mandatory token {} not available"
msgstr ""
#: inary/sxml/autoxml.py:670
#: inary/sxml/autoxml.py:669
#, python-brace-format
msgid "Type mismatch. Expected {0}, got {1}"
msgstr ""
#: inary/sxml/autoxml.py:699 inary/sxml/autoxml.py:819
#: inary/sxml/autoxml.py:698 inary/sxml/autoxml.py:818
msgid "Type mismatch: DOM cannot be decoded"
msgstr ""
#: inary/sxml/autoxml.py:702 inary/sxml/autoxml.py:718
#: inary/sxml/autoxml.py:732 inary/sxml/autoxml.py:822
#: inary/sxml/autoxml.py:836 inary/sxml/autoxml.py:850
#: inary/sxml/autoxml.py:701 inary/sxml/autoxml.py:717
#: inary/sxml/autoxml.py:731 inary/sxml/autoxml.py:821
#: inary/sxml/autoxml.py:835 inary/sxml/autoxml.py:849
msgid "Mandatory argument not available"
msgstr ""
#: inary/sxml/autoxml.py:715 inary/sxml/autoxml.py:833
#: inary/sxml/autoxml.py:714 inary/sxml/autoxml.py:832
msgid "Object cannot be encoded"
msgstr ""
#: inary/sxml/autoxml.py:729 inary/sxml/autoxml.py:847
#: inary/sxml/autoxml.py:728 inary/sxml/autoxml.py:846
msgid "Object cannot be formatted"
msgstr ""
#: inary/sxml/autoxml.py:745
#: inary/sxml/autoxml.py:744
msgid "List type must contain only one element"
msgstr ""
#: inary/sxml/autoxml.py:758 inary/sxml/autoxml.py:778
#: inary/sxml/autoxml.py:757 inary/sxml/autoxml.py:777
#, python-brace-format
msgid "Mandatory list \"{0}\" under \"{1}\" node is empty."
msgstr ""
......@@ -3478,8 +3478,8 @@ msgstr ""
msgid "Invalid version string: '{}'"
msgstr ""
#~ msgid "long integer"
#~ msgstr "totalidade longo"
#~ msgid "{} option requires an argument"
#~ msgstr "{} opção requer um argumento"
#~ msgid "long integer"
#~ msgstr "totalidade longo"
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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