'iI d Z ddlZddlZddlZddlZddlmZ ddlmZ ej e
Zd Zdedee
fdZd Zd
ZdS )u
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 3 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see
N)Path)Optionalc # K |dk rt d t | }t t j || x}r*|V t t j || x}(d S d S )N zn must be at least one)
ValueErroritertuple itertoolsislice)iterablenitbatchs O/opt/imunify360/venv/lib/python3.11/site-packages/imav/migration_utils/other.pybatchedr s 1uu1222
hB)"a0011
1% )"a0011
1% pathreturnc N | S # t $ r Y d S w xY w)N)owner Exception)r s r get_ownerr ) s7 zz|| tts
$$c 4 dd l } n# t $ r Y dS w xY wdS )Nr FT)im360ImportError)r s r
im360_presentr 0 s9 uu4s
c t j fd }t j fd }t j r|n|S )Nc x K t rt d d S | i | d {V S Nz,Imunify360 is already installed. Skipping...r loggerinfoargskwargsfs r
async_wrapperz%skip_for_im360..async_wrapper9 sR ?? KKFGGGFQ''''''''''r c h t rt d d S | i |S r r r# s r wrapperzskip_for_im360..wrapper@ s<