提取repo的仓库和工作树(无效)

news2024/11/20 0:32:45

问题

从供应商处获取的.repo的git仓库裸(project-object)仓库和工作树(projects)是分开的。

解决方案

根据工作树的软链接路劲,将工作树合并到project-object下。

import os
import shutil
import argparse
import logging

# 设置日志配置
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')

def get_target_dir_from_symlink(symlink_path, base_dir):
    """根据软链接获取目标目录"""
    if os.path.islink(symlink_path):
        target_relative_path = os.readlink(symlink_path)
        target_absolute_path = os.path.abspath(os.path.join(os.path.dirname(symlink_path), target_relative_path))
        # 去掉多余的 'objects' 目录部分
        target_dir = os.path.dirname(target_absolute_path)
        return os.path.relpath(target_dir, base_dir)
    logging.warning(f"No valid symlink found at {symlink_path}")
    return None

def copy_dirs_to_project_objects(base_dir, dirs_to_copy):
    projects_dir = os.path.join(base_dir, 'projects')
    project_objects_dir = os.path.join(base_dir, 'project-objects')

    # 遍历 projects 目录
    for root, dirs, files in os.walk(projects_dir):
        for dir_name in dirs:
            if dir_name.endswith('.git'):
                # 构建源路径
                source_git_dir = os.path.join(root, dir_name)
                objects_symlink = os.path.join(source_git_dir, 'objects')
                
                # 获取目标目录
                target_relative_path = get_target_dir_from_symlink(objects_symlink, base_dir)
                if target_relative_path:
                    target_git_dir = os.path.join(base_dir, target_relative_path)
                    
                    for dir_to_copy in dirs_to_copy:
                        source_dir = os.path.join(source_git_dir, dir_to_copy)
                        target_dir = os.path.join(target_git_dir, dir_to_copy)
                        
                        # 确保目标目录存在
                        os.makedirs(os.path.dirname(target_dir), exist_ok=True)
                        
                        # 复制目录
                        if os.path.exists(source_dir):
                            shutil.rmtree(target_dir, ignore_errors=True)
                            shutil.copytree(source_dir, target_dir)
                            logging.info(f"Copied {source_dir} to {target_dir}")
                        else:
                            logging.warning(f"Source directory {source_dir} does not exist")
                else:
                    logging.warning(f"No valid symlink found for {source_git_dir}")

if __name__ == "__main__":
    parser = argparse.ArgumentParser(description='Copy refs and logs directories to project-objects based on symlinks.')
    parser.add_argument('repo_dir', type=str, help='The absolute path to the .repo directory')
    args = parser.parse_args()

    base_dir = args.repo_dir
    dirs_to_copy = ['refs', 'logs']
    copy_dirs_to_project_objects(base_dir, dirs_to_copy)
python3 copy_dirs.py /absolute/path/to/.repo

日志

gituser@vmware:~$ python3 copy_dirs.py /home/gituser/repo_path/.repo/
2024-11-17 18:33:14,032 - INFO - Copied /home/gituser/repo_path/.repo/projects/buildroot.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/buildroot.git/refs
2024-11-17 18:33:14,033 - INFO - Copied /home/gituser/repo_path/.repo/projects/buildroot.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/buildroot.git/logs
2024-11-17 18:33:14,033 - INFO - Copied /home/gituser/repo_path/.repo/projects/kernel.git/refs to /home/gituser/repo_path/.repo/project-objects/rk/kernel.git/refs
2024-11-17 18:33:14,034 - INFO - Copied /home/gituser/repo_path/.repo/projects/kernel.git/logs to /home/gituser/repo_path/.repo/project-objects/rk/kernel.git/logs
2024-11-17 18:33:14,034 - INFO - Copied /home/gituser/repo_path/.repo/projects/rkbin.git/refs to /home/gituser/repo_path/.repo/project-objects/rk/rkbin.git/refs
2024-11-17 18:33:14,035 - INFO - Copied /home/gituser/repo_path/.repo/projects/rkbin.git/logs to /home/gituser/repo_path/.repo/project-objects/rk/rkbin.git/logs
2024-11-17 18:33:14,035 - INFO - Copied /home/gituser/repo_path/.repo/projects/docs.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/bsp/docs.git/refs
2024-11-17 18:33:14,036 - INFO - Copied /home/gituser/repo_path/.repo/projects/docs.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/bsp/docs.git/logs
2024-11-17 18:33:14,036 - INFO - Copied /home/gituser/repo_path/.repo/projects/u-boot.git/refs to /home/gituser/repo_path/.repo/project-objects/android/rk/u-boot.git/refs
2024-11-17 18:33:14,037 - INFO - Copied /home/gituser/repo_path/.repo/projects/u-boot.git/logs to /home/gituser/repo_path/.repo/project-objects/android/rk/u-boot.git/logs
2024-11-17 18:33:14,037 - INFO - Copied /home/gituser/repo_path/.repo/projects/debian.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/debian.git/refs
2024-11-17 18:33:14,038 - INFO - Copied /home/gituser/repo_path/.repo/projects/debian.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/debian.git/logs
2024-11-17 18:33:14,038 - INFO - Copied /home/gituser/repo_path/.repo/projects/tools.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/tools.git/refs
2024-11-17 18:33:14,039 - INFO - Copied /home/gituser/repo_path/.repo/projects/tools.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/tools.git/logs
2024-11-17 18:33:14,039 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/libIPCProtocol.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app-new/LibIPCProtocol.git/refs
2024-11-17 18:33:14,040 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/libIPCProtocol.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app-new/LibIPCProtocol.git/logs
2024-11-17 18:33:14,040 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/qsetting.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app/settings.git/refs
2024-11-17 18:33:14,041 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/qsetting.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app/settings.git/logs
2024-11-17 18:33:14,041 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/libgdbus.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app/libgdbus.git/refs
2024-11-17 18:33:14,042 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/libgdbus.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app/libgdbus.git/logs
2024-11-17 18:33:14,042 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/qfm.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app-new/qfm.git/refs
2024-11-17 18:33:14,043 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/qfm.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app-new/qfm.git/logs
2024-11-17 18:33:14,043 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/qplayer.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app/qplayer.git/refs
2024-11-17 18:33:14,044 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/qplayer.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app/qplayer.git/logs
2024-11-17 18:33:14,044 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/QLauncher.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app/QLauncher.git/refs
2024-11-17 18:33:14,045 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/QLauncher.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app/QLauncher.git/logs
2024-11-17 18:33:14,045 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/multivideoplayer.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app/multivideoplayer.git/refs
2024-11-17 18:33:14,046 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/multivideoplayer.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app/multivideoplayer.git/logs
2024-11-17 18:33:14,046 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/rkaiq_tool_server.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app/rkaiq_tool_server.git/refs
2024-11-17 18:33:14,047 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/rkaiq_tool_server.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app/rkaiq_tool_server.git/logs
2024-11-17 18:33:14,047 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/librkdb.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app/librkdb.git/refs
2024-11-17 18:33:14,048 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/librkdb.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app/librkdb.git/logs
2024-11-17 18:33:14,048 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/dbserver.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app/dbserver.git/refs
2024-11-17 18:33:14,048 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/dbserver.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app/dbserver.git/logs
2024-11-17 18:33:14,049 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/qcamera.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app/qcamera.git/refs
2024-11-17 18:33:14,049 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/qcamera.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app/qcamera.git/logs
2024-11-17 18:33:14,050 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/eptz_demo.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app/eptz_demo.git/refs
2024-11-17 18:33:14,050 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/eptz_demo.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app/eptz_demo.git/logs
2024-11-17 18:33:14,051 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/aiserver.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/app/aiserver.git/refs
2024-11-17 18:33:14,051 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/aiserver.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/app/aiserver.git/logs
2024-11-17 18:33:14,052 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/alientek/qt_demo.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/alientek/qt_demo.git/refs
2024-11-17 18:33:14,052 - INFO - Copied /home/gituser/repo_path/.repo/projects/app/alientek/qt_demo.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/alientek/qt_demo.git/logs
2024-11-17 18:33:14,056 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/meta-openembedded.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/yocto/meta-openembedded.git/refs
2024-11-17 18:33:14,056 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/meta-openembedded.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/yocto/meta-openembedded.git/logs
2024-11-17 18:33:14,057 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/meta-rockchip.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/yocto/meta-rockchip.git/refs
2024-11-17 18:33:14,057 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/meta-rockchip.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/yocto/meta-rockchip.git/logs
2024-11-17 18:33:14,058 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/meta-clang.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/yocto/meta-clang.git/refs
2024-11-17 18:33:14,058 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/meta-clang.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/yocto/meta-clang.git/logs
2024-11-17 18:33:14,059 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/poky.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/yocto/poky.git/refs
2024-11-17 18:33:14,060 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/poky.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/yocto/poky.git/logs
2024-11-17 18:33:14,060 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/meta-browser.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/yocto/meta-browser.git/refs
2024-11-17 18:33:14,061 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/meta-browser.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/yocto/meta-browser.git/logs
2024-11-17 18:33:14,061 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/meta-qt5.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/yocto/meta-qt5.git/refs
2024-11-17 18:33:14,062 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/meta-qt5.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/yocto/meta-qt5.git/logs
2024-11-17 18:33:14,062 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/build/conf.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/build.git/refs
2024-11-17 18:33:14,063 - INFO - Copied /home/gituser/repo_path/.repo/projects/yocto/build/conf.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/build.git/logs
2024-11-17 18:33:14,065 - INFO - Copied /home/gituser/repo_path/.repo/projects/docs/.Socs.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/bsp/internal_doc.git/refs
2024-11-17 18:33:14,066 - INFO - Copied /home/gituser/repo_path/.repo/projects/docs/.Socs.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/bsp/internal_doc.git/logs
2024-11-17 18:33:14,066 - INFO - Copied /home/gituser/repo_path/.repo/projects/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.git/refs to /home/gituser/repo_path/.repo/project-objects/rk/prebuilts/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.git/refs
2024-11-17 18:33:14,067 - INFO - Copied /home/gituser/repo_path/.repo/projects/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.git/logs to /home/gituser/repo_path/.repo/project-objects/rk/prebuilts/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu.git/logs
2024-11-17 18:33:14,067 - INFO - Copied /home/gituser/repo_path/.repo/projects/prebuilts/gcc/linux-x86/aarch64/gcc-buildroot-9.3.0-2020.03-x86_64_aarch64-rockchip-linux-gnu.git/refs to /home/gituser/repo_path/.repo/project-objects/rk/prebuilts/gcc-buildroot-9.3.0-2020.03-x86_64_aarch64-rockchip-linux-gnu.git/refs
2024-11-17 18:33:14,068 - INFO - Copied /home/gituser/repo_path/.repo/projects/prebuilts/gcc/linux-x86/aarch64/gcc-buildroot-9.3.0-2020.03-x86_64_aarch64-rockchip-linux-gnu.git/logs to /home/gituser/repo_path/.repo/project-objects/rk/prebuilts/gcc-buildroot-9.3.0-2020.03-x86_64_aarch64-rockchip-linux-gnu.git/logs
2024-11-17 18:33:14,069 - INFO - Copied /home/gituser/repo_path/.repo/projects/device/rockchip.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/device/rockchip.git/refs
2024-11-17 18:33:14,069 - INFO - Copied /home/gituser/repo_path/.repo/projects/device/rockchip.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/device/rockchip.git/logs
2024-11-17 18:33:14,070 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/alsa-config.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/alsa-config.git/refs
2024-11-17 18:33:14,071 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/alsa-config.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/alsa-config.git/logs
2024-11-17 18:33:14,071 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rkfacial.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/rkfacial.git/refs
2024-11-17 18:33:14,072 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rkfacial.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/rkfacial.git/logs
2024-11-17 18:33:14,073 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rknpu2.git/refs to /home/gituser/repo_path/.repo/project-objects/rk/rknpu2.git/refs
2024-11-17 18:33:14,073 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rknpu2.git/logs to /home/gituser/repo_path/.repo/project-objects/rk/rknpu2.git/logs
2024-11-17 18:33:14,074 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/linux-rga.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/linux-rga.git/refs
2024-11-17 18:33:14,074 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/linux-rga.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/linux-rga.git/logs
2024-11-17 18:33:14,075 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/uac_app.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/uac_app.git/refs
2024-11-17 18:33:14,075 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/uac_app.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/uac_app.git/logs
2024-11-17 18:33:14,075 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rkscript.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/rkscript.git/refs
2024-11-17 18:33:14,076 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rkscript.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/rkscript.git/logs
2024-11-17 18:33:14,076 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/update_engine.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/update_engine.git/refs
2024-11-17 18:33:14,077 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/update_engine.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/update_engine.git/logs
2024-11-17 18:33:14,077 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rkupdate.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/rkupdate.git/refs
2024-11-17 18:33:14,078 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rkupdate.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/rkupdate.git/logs
2024-11-17 18:33:14,078 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/bluetooth_bsa.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/bsp/external/bluetooth_bsa.git/refs
2024-11-17 18:33:14,079 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/bluetooth_bsa.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/bsp/external/bluetooth_bsa.git/logs
2024-11-17 18:33:14,079 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/mpp.git/refs to /home/gituser/repo_path/.repo/project-objects/rk/mpp.git/refs
2024-11-17 18:33:14,080 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/mpp.git/logs to /home/gituser/repo_path/.repo/project-objects/rk/mpp.git/logs
2024-11-17 18:33:14,080 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/libmali.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/libmali.git/refs
2024-11-17 18:33:14,081 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/libmali.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/libmali.git/logs
2024-11-17 18:33:14,081 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/avb.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/avb.git/refs
2024-11-17 18:33:14,081 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/avb.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/avb.git/logs
2024-11-17 18:33:14,082 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/ble_wificonfig.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/ble_wificonfig.git/refs
2024-11-17 18:33:14,082 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/ble_wificonfig.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/ble_wificonfig.git/logs
2024-11-17 18:33:14,083 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/broadcom_bsa.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/bsp/external/broadcom_bsa.git/refs
2024-11-17 18:33:14,083 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/broadcom_bsa.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/bsp/external/broadcom_bsa.git/logs
2024-11-17 18:33:14,084 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/chromium.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/chromium.git/refs
2024-11-17 18:33:14,084 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/chromium.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/chromium.git/logs
2024-11-17 18:33:14,085 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/uvc_app.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/uvc_app.git/refs
2024-11-17 18:33:14,085 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/uvc_app.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/uvc_app.git/logs
2024-11-17 18:33:14,086 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/minilogger.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/minilogger.git/refs
2024-11-17 18:33:14,086 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/minilogger.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/minilogger.git/logs
2024-11-17 18:33:14,087 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rktoolkit.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/rktoolkit.git/refs
2024-11-17 18:33:14,087 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rktoolkit.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/rktoolkit.git/logs
2024-11-17 18:33:14,088 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/bluez-alsa.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/bluez-alsa.git/refs
2024-11-17 18:33:14,088 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/bluez-alsa.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/bluez-alsa.git/logs
2024-11-17 18:33:14,089 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rkwifibt.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/rkwifibt.git/refs
2024-11-17 18:33:14,089 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rkwifibt.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/rkwifibt.git/logs
2024-11-17 18:33:14,090 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/recovery.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/recovery.git/refs
2024-11-17 18:33:14,090 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/recovery.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/recovery.git/logs
2024-11-17 18:33:14,091 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/deviceio_release.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/deviceio_release.git/refs
2024-11-17 18:33:14,091 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/deviceio_release.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/deviceio_release.git/logs
2024-11-17 18:33:14,092 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/eq_drc_process.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/eq_drc_process.git/refs
2024-11-17 18:33:14,092 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/eq_drc_process.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/eq_drc_process.git/logs
2024-11-17 18:33:14,093 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rknn-toolkit2.git/refs to /home/gituser/repo_path/.repo/project-objects/rk/rknn-toolkit2.git/refs
2024-11-17 18:33:14,093 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rknn-toolkit2.git/logs to /home/gituser/repo_path/.repo/project-objects/rk/rknn-toolkit2.git/logs
2024-11-17 18:33:14,094 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rk_pcba_test.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/rk_pcba_test.git/refs
2024-11-17 18:33:14,094 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rk_pcba_test.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/rk_pcba_test.git/logs
2024-11-17 18:33:14,095 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/quectel_QConnectManager.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/quectel_QConnectManager.git/refs
2024-11-17 18:33:14,095 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/quectel_QConnectManager.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/quectel_QConnectManager.git/logs
2024-11-17 18:33:14,096 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/common_algorithm.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/common_algorithm.git/refs
2024-11-17 18:33:14,096 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/common_algorithm.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/common_algorithm.git/logs
2024-11-17 18:33:14,096 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/libglCompositor.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/libglCompositor.git/refs
2024-11-17 18:33:14,097 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/libglCompositor.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/libglCompositor.git/logs
2024-11-17 18:33:14,097 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/camera_engine_rkaiq.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/camera_engine_rkaiq.git/refs
2024-11-17 18:33:14,098 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/camera_engine_rkaiq.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/camera_engine_rkaiq.git/logs
2024-11-17 18:33:14,098 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rockit.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/rockit.git/refs
2024-11-17 18:33:14,099 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/rockit.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/rockit.git/logs
2024-11-17 18:33:14,099 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/gstreamer-rockchip.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/gstreamer-rockchip.git/refs
2024-11-17 18:33:14,100 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/gstreamer-rockchip.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/gstreamer-rockchip.git/logs
2024-11-17 18:33:14,100 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/isp2-ipc.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/isp2-ipc.git/refs
2024-11-17 18:33:14,101 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/isp2-ipc.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/isp2-ipc.git/logs
2024-11-17 18:33:14,101 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/CallFunIpc.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/external/CallFunIpc.git/refs
2024-11-17 18:33:14,102 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/CallFunIpc.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/external/CallFunIpc.git/logs
2024-11-17 18:33:14,106 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/security/bin.git/refs to /home/gituser/repo_path/.repo/project-objects/linux/security/bin.git/refs
2024-11-17 18:33:14,107 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/security/bin.git/logs to /home/gituser/repo_path/.repo/project-objects/linux/security/bin.git/logs
2024-11-17 18:33:14,107 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/security/rk_tee_user.git/refs to /home/gituser/repo_path/.repo/project-objects/android/rk/platform/system/rk_tee_user.git/refs
2024-11-17 18:33:14,108 - INFO - Copied /home/gituser/repo_path/.repo/projects/external/security/rk_tee_user.git/logs to /home/gituser/repo_path/.repo/project-objects/android/rk/platform/system/rk_tee_user.git/logs
gituser@vmware:~$

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2243710.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

从 IDC 到云原生:稳定性提升 100%,成本下降 50%,热联集团的数字化转型与未来展望

作者:金峰(项良)、朱永林、赵世振(寰奕) 公司简介 杭州热联集团股份有限公司成立于 1997 年 10 月,是隶属杭州市实业投资集团的国有控股公司。公司专业从事国际、国内钢铁贸易黑色大宗商品及产业服务&…

说说软件工程中的“协程”

在软件工程中,协程(coroutine)是一种程序运行的方式,可以理解成“协作的线程”或“协作的函数”。以下是对协程的详细解释: 一、协程的基本概念 定义:协程是一组序列化的子过程,用户能像指挥家…

MinIO 的 S3 over RDMA 计划: 为高速人工智能数据基础设施设定对象存储新标准

随着 AI 和机器学习的需求不断加速,数据中心网络正在迅速发展以跟上步伐。对于许多企业来说,400GbE 甚至 800GbE 正在成为标准选择,因为数据密集型和时间敏感型 AI 工作负载需要高速、低延迟的数据传输。用于大型语言处理、实时分析和计算机视…

怀旧游戏打卡清单(TODO)

感觉忙碌了好久好久,真的好想休息一下。。 整理一下将来休息时候的打卡清单,不工作了去个海边狂打游戏,想想就惬意啊。当然,最好找个work from home,去海边找个酒店上班。挣钱休息两不误。。。 能不能实现另说&#xf…

《Python制作动态爱心粒子特效》

一、实现思路 粒子效果: – 使用Pygame模拟粒子运动,粒子会以爱心的轨迹分布并运动。爱心公式: 爱心的数学公式: x16sin 3 (t),y13cos(t)−5cos(2t)−2cos(3t)−cos(4t) 参数 t t 的范围决定爱心形状。 动态效果: 粒子…

使⽤MATLAB进⾏⽬标检测

目录 数据准备定义模型并训练用测试集评估性能推理过程⼀⾏代码查看⽹络结构⼀⾏代码转onnx结语 ⼈⽣苦短,我⽤MATLAB。 Pytorch在深度学习领域占据了半壁江⼭,最主要的原因是⽣态完善,⽽且api直观易⽤。但谁能想到现在MATLAB⽤起来⽐Pytorch…

word-毕业论文的每一章节的页眉单独设置为该章的题目怎么设置

在Microsoft Word中,为毕业论文的每个章节设置不同的页眉,通常需要使用“分节符”来分隔各个章节,然后在每个章节中单独设置页眉。以下是详细步骤: 使用分节符 插入分节符: 将光标放在每个章节的末尾(注意…

【简历】25届江苏二本JAVA简历:本末倒置,重点部分格式错误,不重要的写了一堆

简历总体说明 校招的第一法则就是必须要确定校招层次。 开发岗分为大中小厂,不同的层次对学校背景、时间点、项目和考点的要求都不太一样,所以必须要确定就业的层次。 这是一个25届二本同学的JAVA简历。 最近不知道怎么回事,看两份简历都…

字母异位词分组(java)

题目描述 给你一个字符串数组,请你将 字母异位词 组合在一起。可以按任意顺序返回结果列表。 字母异位词 是由重新排列源单词的所有字母得到的一个新单shilie 示例 1: 输入: strs ["eat", "tea", "tan", "ate", "n…

fpga spi回环

SPI设备间的数据传输之所以又被称为数据交换,是因为 SPI协议规定一个 SPI设备 不能在数据通信过程中仅仅只充当一个"发送者(Transmitter)“或者"接收者 (Receiver)”.在每个 Clock 周期内,SPI 设备都会发送并接收一个 bit 大小的数据(不管主 设备好还是从设备),相当于…

计算机网络-理论部分(二):应用层

网络应用体系结构 Client-Server客户-服务器体系结构:如Web,FTP,Telnet等Peer-Peer:点对点P2P结构,如BitTorrent 应用层协议定义了: 交换的报文类型,请求or响应报文类型的语法字段的含义如何…

路由器基本原理与配置

一 , 路由是什么? 从源主机到目标主机的转发过程; 二 , 路由器 (1)路由器的工作原理 路由器是一种三层设备,是使用IP地址寻址,实现从源IP到达目标IP地址的端到端的服务&#xff0c…

windows的WSL Ubuntu子系统重置root或其他用户的密码

思路:以管理员身份运行PowerShell,在命令行窗口重置密码 ,不需要删除或重新安装Linux子系统。 1、以管理员身份运行PowerShell 2、用root用户启动Ubuntu,执行 wsl.exe --user root 3、重置密码,执行passwd username&…

autoDL微调训练qwen2vl大模型

autodl是一家GPU服务厂商,提供专业的GPU租用服务,秒级计费、稳定好用 先去autodl把官方的帮助文档看懂先 AutoDL帮助文档 autodl注册并登陆,充钱,根据自己的情况租用新实例 创建新实例后马上关机,因为有个省钱的办法…

9.2 使用haarcascade_frontalface_default.xml分类器检测视频中的人脸,并框出人脸位置。

1)程序代码: # 2.使用haarcascade_frontalface_default.xml分类器检测视频中的人脸,并框出人脸位置 import cv2# 加载人脸检测的 Haar 级联分类器 face_cascade cv2.CascadeClassifier(./data/haarcascades/haarcascade_frontalface_defaul…

K8S containerd拉取harbor镜像

前言 接前面的环境 K8S 1.24以后开始启用docker作为CRI,这里用containerd拉取 参考文档 正文 vim /etc/containerd/config.toml #修改内容如下 #sandbox_image "registry.aliyuncs.com/google_containers/pause:3.10" systemd_cgroup true [plugins.…

ARM64环境部署EFK8.15.3收集K8S集群容器日志

环境规划 主机IP系统部署方式ES版本CPU架构用户名密码192.168.1.225Ubuntu 22.04.4 LTSdockerelasticsearch:8.15.3ARM64elasticllodyi4TMmZD ES集群部署 创建持久化目录(所有节点) mkdir -p /data/es/{data,certs,logs,plugins} mkdir -p /data/es/certs/{ca,es01}服务器…

前端小练习——星辰宇宙(JS没有上限!!!)

前言:在刚开始学习前端的时候,我们会学习到前端三件套中的JavaScript,可能那时候读者没有觉得JavaScript这个语言有多么的牛逼,本篇文章将会使用一个炫酷的案例来刷新你对JavaScript这个语言的认知与理解。 ✨✨✨这里是秋刀鱼不做…

图文教程 | 2024年IDEA安装使用教程,JDK简易下载方法

前言 📢博客主页:程序源⠀-CSDN博客 📢欢迎点赞👍收藏⭐留言📝如有错误敬请指正! 目录 一、IDEA安装 二、激活 三、JDK安装 四、JDK环境配置 五、验证 一、IDEA安装 进入官网下载: Other…

【阅读记录-章节2】Build a Large Language Model (From Scratch)

目录 2.Working with text data2.1 Understanding word embeddings2.2 Tokenizing text通过一个简单的实验来理解文本的词元化概念关键概念 2.3 Converting tokens into token IDs实现分词器类(Tokenizer Class)应用分词器测试文本的编码与解码通过分词器…