X7ROOT File Manager
Current Path:
/usr/lib64/python2.7/site-packages
usr
/
lib64
/
python2.7
/
site-packages
/
📁
..
📁
MarkupSafe-0.11-py2.7.egg-info
📄
PyYAML-3.10-py2.7.egg-info
(1.72 KB)
📄
README
(119 B)
📄
_audit.so
(163.65 KB)
📄
_dbus_bindings.so
(162.35 KB)
📄
_dbus_glib_bindings.so
(11.7 KB)
📄
_semanage.so
(311.41 KB)
📄
_snackmodule.so
(39.95 KB)
📄
_sqlitecache.so
(49.03 KB)
📄
_yaml.so
(164.26 KB)
📄
acutilmodule.so
(11.08 KB)
📄
audit.py
(45.11 KB)
📄
audit.pyc
(43.89 KB)
📄
audit.pyo
(43.89 KB)
📄
auparse.so
(63.2 KB)
📁
backports
📁
curl
📁
dbus
📁
dns
📄
dnspython-1.12.0-py2.7.egg-info
(1.25 KB)
📄
drv_libxml2.py
(14.71 KB)
📄
drv_libxml2.pyc
(10.94 KB)
📄
drv_libxml2.pyo
(10.94 KB)
📁
gi
📁
gpgme
📄
liblzma.py
(164 B)
📄
liblzma.pyc
(361 B)
📄
liblzma.pyo
(361 B)
📄
libxml2.py
(337.44 KB)
📄
libxml2.pyc
(438.93 KB)
📄
libxml2.pyo
(438.93 KB)
📄
libxml2mod.so
(417.95 KB)
📄
lzma.so
(66.3 KB)
📁
markupsafe
📄
perf-0.1-py2.7.egg-info
(261 B)
📄
perf.so
(335.91 KB)
📁
policycoreutils
📄
policycoreutils_default_encoding-0.1-py2.7.egg-info
(300 B)
📄
pycurl-7.19.0-py2.7.egg-info
(366 B)
📄
pycurl.so
(69.09 KB)
📄
pygobject-3.22.0-py2.7-linux-x86_64.egg-info
(1013 B)
📄
pygpgme-0.3-py2.7.egg-info
(889 B)
📁
pygtkcompat
📁
pyliblzma-0.5.3-py2.7.egg-info
📁
pynche
📁
pyxattr-0.5.1-py2.7.egg-info
📁
rpm
📄
schedutils-0.4-py2.7.egg-info
(291 B)
📄
schedutils.so
(15.53 KB)
📁
selinux
📄
semanage.py
(54.1 KB)
📄
semanage.pyc
(67.86 KB)
📄
semanage.pyo
(67.86 KB)
📁
seobject
📄
seobject-0.1-py2.7.egg-info
(291 B)
📁
sepolgen
📁
sepolicy
📄
sepolicy-1.1-py2.7.egg-info
(227 B)
📄
snack.py
(30.23 KB)
📄
snack.pyc
(39.98 KB)
📄
snack.pyo
(39.98 KB)
📄
sqlitecachec.py
(2.45 KB)
📄
sqlitecachec.pyc
(2.12 KB)
📄
sqlitecachec.pyo
(2.12 KB)
📄
xattr.so
(31.76 KB)
📁
yaml
📄
yum_metadata_parser-1.1.4-py2.7.egg-info
(213 B)
Editing: sqlitecachec.py
# 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 Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. try: import sqlite3 as sqlite except ImportError: import sqlite import _sqlitecache DBVERSION = _sqlitecache.DBVERSION class RepodataParserSqlite: def __init__(self, storedir, repoid, callback=None): self.callback = callback self.repoid = repoid def open_database(self, filename): if not filename: return None con = sqlite.connect(filename) con.text_factory = str if sqlite.version_info[0] > 1: con.row_factory = sqlite.Row cur = con.cursor() cur.execute("pragma locking_mode = EXCLUSIVE") del cur return con def getPrimary(self, location, checksum): """Load primary.xml.gz from an sqlite cache and update it if required""" return self.open_database(_sqlitecache.update_primary(location, checksum, self.callback, self.repoid)) def getFilelists(self, location, checksum): """Load filelist.xml.gz from an sqlite cache and update it if required""" return self.open_database(_sqlitecache.update_filelist(location, checksum, self.callback, self.repoid)) def getOtherdata(self, location, checksum): """Load other.xml.gz from an sqlite cache and update it if required""" return self.open_database(_sqlitecache.update_other(location, checksum, self.callback, self.repoid))
Upload File
Create Folder