?¡ëPNG
IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À?¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
# Client code for Update Agent
# Copyright (c) 1999-2002 Red Hat, Inc. Distributed under GPL.
#
# Author: Preston Brown
# Adrian Likins
#
"""utility functions for up2date"""
import os
import string
import up2dateErrors
import transaction
import config
import gettext
t = gettext.translation('rhn-client-tools', fallback=True)
_ = t.ugettext
def _getOSVersionAndRelease():
cfg = config.initUp2dateConfig()
ts = transaction.initReadOnlyTransaction()
for h in ts.dbMatch('Providename', "redhat-release"):
if cfg["versionOverride"]:
version = cfg["versionOverride"]
else:
version = h['version']
osVersionRelease = (h['name'], version, h['release'])
return osVersionRelease
else:
raise up2dateErrors.RpmError(
"Could not determine what version of Red Hat Linux you "\
"are running.\nIf you get this error, try running \n\n"\
"\t\trpm --rebuilddb\n\n")
def getVersion():
'''
Returns the version of redhat-release rpm
'''
os_release, version, release = _getOSVersionAndRelease()
return str(version)
def getOSRelease():
'''
Returns the name of the redhat-release rpm
'''
os_release, version, release = _getOSVersionAndRelease()
return os_release
def getRelease():
'''
Returns the release of the redhat-release rpm
'''
os_release, version, release = _getOSVersionAndRelease()
return release
def getArch():
if not os.access("/etc/rpm/platform", os.R_OK):
return os.uname()[4]
fd = open("/etc/rpm/platform", "r")
platform = string.strip(fd.read())
#bz 216225
#handle some replacements..
replace = {"ia32e-redhat-linux": "x86_64-redhat-linux"}
if replace.has_key(platform):
platform = replace[platform]
return platform
def version():
# substituted to the real version by the Makefile at installation time.
return "1.0.0.1-45.el6"