当前位置: 首页 > news >正文

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

问题

从供应商处获取的.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 Nonedef 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_dirdirs_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:~$

相关文章:

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

问题 从供应商处获取的.repo的git仓库裸(project-object)仓库和工作树(projects)是分开的。 解决方案 根据工作树的软链接路劲,将工作树合并到project-object下。 import os import shutil import argparse import logging# 设置日志配置 logging.basicConfig(l…...

力扣整理版七:二叉树(待更新)

满二叉树:如果一棵二叉树只有度为0的结点和度为2的结点,并且度为0的结点在同一层上,则这棵二叉树为满二叉树。深度为k,有2^k-1个节点的二叉树。 完全二叉树:在完全二叉树中,除了最底层节点可能没填满外&am…...

基于单片机的多功能环保宠物窝设计

本设计基于单片机设计的多功能环保宠物窝,利用温湿度传感器、压力传感模块、气味传感模块、红外测温传感器、通信模块、显示模块、清扫部件等,使其能够实现自动检测并调节温湿度、补充宠物食物、检测宠物体温健康并出现异常时进行报警、自动清扫消毒宠物…...

HBase 基础操作

一、启动HBase 首先,确保Hadoop和HBase服务已经启动。如果尚未启动,可以使用以下命令启动: # 启动Hadoop start-all.sh# 启动HBase start-hbase.sh二、HBase Shell操作 创建表 在HBase Shell中,使用create命令创建表。以下是一…...

小米顾此失彼:汽车毛利大增,手机却跌至低谷

科技新知 原创作者丨依蔓 编辑丨蕨影 三年磨一剑的小米汽车毛利率大增,手机业务毛利率却出现下滑景象。 11月18日,小米集团发布 2024年第三季度财报,公司实现营收925.1亿元,同比增长30.5%,预估902.8亿元;…...

PCL 三维重建 a-shape曲面重建算法

目录 一、概述 1.1原理 1.2实现步骤 1.3应用场景 二、代码实现 2.1关键函数 2.1.1 Concave Hull重建 2.1.2 可视化曲面重建结果 2.2完整代码 三、实现效果 PCL点云算法汇总及实战案例汇总的目录地址链接: PCL点云算法与项目实战案例汇总(长期更新) 一、概述 …...

【Android】线程池的解析

引言 在Android当中根据用途分为主线程与子线程,主线程当中主要处理与界面相关的操作,子线程主要进行耗时操作。除了Thread本身以外,在Android当中还有很多扮演者线程的角色,比如AsyncTask( 底层为线程池,…...

集群聊天服务器(8)用户登录业务

目录 登录状态业务层代码数据模型层代码记录用户的连接信息以及线程安全问题客户端异常退出业务 登录状态 登录且状态变为online 业务层代码 #include "chatservice.hpp" #include "public.hpp" #include <string> #include <muduo/base/Loggi…...

Go语言中的错误嵌套

在Go语言中&#xff0c;错误处理是程序健壮性的关键。Go 1.13版本引入了错误值的嵌套和链式处理&#xff0c;使得错误信息的传递和处理更加灵活和强大。这种机制允许我们在错误中嵌套另一个错误&#xff0c;从而创建一个错误链&#xff0c;这有助于调试和错误跟踪。 错误嵌套的…...

51单片机基础 06 串口通信与串口中断

目录 一、串口通信 二、串口协议 三、原理图 四、串口通信配置参数 1、常用的串行口工作方式1 2、数据发送 3、数据接收 4、波特率计算 5、轮询接收 6、中断接收 一、串口通信 串口通信是一种常见的数据传输方式&#xff0c;广泛用于计算机与外部设备或嵌入式系统之间…...

Elasticsearch:更好的二进制量化(BBQ)对比乘积量化(PQ)

作者&#xff1a;来自 Elastic Benjamin Trent 为什么我们选择花时间研究更好的二进制量化而不是在 Lucene 和 Elasticsearch 中进行生产量化。 我们一直在逐步使 Elasticsearch 和 Lucene 的向量搜索变得更快、更实惠。我们的主要重点不仅是通过 SIMD 提高搜索速度&#xff0…...

【GNU】gcc -g编译选项 -g0 -g1 -g2 -g3 -gdwarf

1、gcc -g的作用 GCC 的 -g 选项用于在编译时生成调试信息&#xff0c;这些信息会嵌入到生成的目标文件或可执行文件中&#xff0c;主要目的是为了支持调试器&#xff08;如 gdb&#xff09;对程序的调试工作。 1.1 生成调试信息 当你在编译代码时使用 -g 选项&#xff0c;GCC…...

MySQL【六】

存储过程 存储过程是一组为了完成特定功能的 SQL 语句集&#xff0c;经编译创建并保存在数据库中&#xff0c;用户可通过指定存储过程的名字并给定参数&#xff08;需要时&#xff09;来调用执行。 简单的说存储过程就是具有名字的一段代码。 存储过程的创建 CREATE PROC[ED…...

杰发科技AC7801——ADC定时器触发的简单使用

使用场景 在需要多次采样结果的情况下&#xff0c;比如1s需要10w次的采样结果&#xff0c;可以考虑使用定时器触发采样&#xff0c;定时器设置多少的时间就会多久采样转换一次。 再加上使用dma&#xff0c;采样的结果直接放在dma的数组里面。 实现了自动采样&#xff0c;自动…...

VTK知识学习(8)-坐标系统

1、概述 计算机图形学里常用的坐标系统有4种&#xff1a; 1&#xff09;、Model坐标系统。定义模型时所采用的坐标系统&#xff0c;通常是局部的笛卡儿坐标系。 2&#xff09;、World坐标系统。是放置Actor的三维空间坐标系。 Actor&#xff08;vtkActor类&am…...

IO流部分串讲

一、IO流的概念简析&#xff1a; java将输入与输出比喻为"流"&#xff0c;英文:Stream. 就像生活中的"电流","水流"一样,它是以同一个方向顺序移动的过程.只不过这里流动的是字节(2进制数据).所以在IO中有输入流和输出流之分,我们理解他们是连接…...

Excel——宏教程(2)

Excel——宏教程(2) 一)、处理单元格 1、直接赋值与引用 将变量、常量值直接赋给单元格、或将单元格的值直接赋给变量、常量&#xff0c;这是在excel中最简单的单元格赋值及引用方法。 如下例将工作表"Sheet1"A1单元格的值赋给Integer变量I&#xff0c;并将I1的值…...

unity 中 RectTransform 的常用几个属性

RectTransform rectTransform this.GetComponent<RectTransform>(); rectTransform this.transform as RectTransform; Vector3 vector1 rectTransform.position; //自身轴心点相对于锚点的位置&#xff08;编译器显示的pos&#xff09; …...

项目-摄像

树莓派摄像头使用方法 Camera教程 https://www.raspi.cc/index.php?cread&id53&page1 nanopc-t4 ​https://www.raspi.cc/index.php?cread&id53&page1 摄像头型号 Raspberry Pi Camera Rev 1.3 检测故障 dmesg | grep -i mipi piNanoPC-T4:~$ dmesg | …...

摄像机ISP和DSP的区别?

影像处理器是现代数字相机、手机等电子设备中极其重要的一部分&#xff0c;它能够对传感器采集的图像进行多种操作&#xff0c;从而得到更高质量的图像。常见的两种影像处理芯片有ISP&#xff08;Image Signal Processor&#xff09;和DSP&#xff08;Digital Signal Processor…...

Ubuntu24安装配置NDK

1、下载NDK 下载压缩包&#xff0c;下载地址如下&#xff0c;建议下载LTS支持版本。 https://developer.android.google.cn/ndk/downloads?hlcs 2、解压缩 将NDK解压到指定文件夹。如&#xff1a;/opt 或者先解压&#xff0c;再移动到指定目录下。 3、配置环境变量 找到…...

【Next】中间件

概述 Next.js 的 中间件 (Middleware) 是一种在请求完成之前运行的函数&#xff0c;用于对入站请求进行处理和操作。它可以在路由匹配前执行逻辑&#xff0c;用于身份验证、请求重写、重定向、设置响应头等任务。 使用场景 身份验证&#xff1a;在用户访问页面前检查登录状态…...

Vulnhub靶场案例渗透[11]- Momentum2

文章目录 一、靶场搭建1. 靶场描述2. 下载靶机环境3. 靶场搭建 二、渗透靶场1. 确定靶机IP2. 探测靶场开放端口及对应服务3. 扫描网络目录结构4. 代码审计5. 反弹shell6. 提权 一、靶场搭建 1. 靶场描述 - Difficulty : medium - Keywords : curl, bash, code reviewThis wor…...

STM32设计防丢防摔智能行李箱-分享

目录 目录 前言 一、本设计主要实现哪些很“开门”功能&#xff1f; 二、电路设计原理图 1.电路图采用Altium Designer进行设计&#xff1a; 2.实物展示图片 三、程序源代码设计 四、获取资料内容 前言 随着科技的不断发展&#xff0c;嵌入式系统、物联网技术、智能设备…...

Vue Mixin混入机制

在 Vue.js 中&#xff0c;Mixin&#xff08;混入&#xff09;是一种可复用代码的机制&#xff0c;用于在多个组件之间共享逻辑。通过混入&#xff0c;可以将通用功能提取到一个独立的文件中&#xff0c;然后在组件中引入并使用&#xff0c;而无需重复代码。 基本概念 Mixin 是…...

数据库类型建表

接着上次的数据库笔记&#xff1a; 初始数据库 &#xff08;是博主自己写的&#xff09; 1.数据库类型 1.1数值类型 数据类型大小说明对应JAVA类型BIT[(M)]M指定位数&#xff0c;默认值为1二进制数&#xff0c;M的范围从1—64&#xff0c;存储数值范围从0—2^M-1常用Bool…...

iOS 18 导航栏插入动画会导致背景短暂变白的解决

问题现象 在最新的 iOS 18 系统中,如果我们执行导航栏的插入动画,可能会造成导航栏背景短暂地变为白色: 如上图所示:我们分别向主视图和 Sheet 弹出视图的导航栏插入了消息,并应用了动画效果。可以看到,前者的导航栏背景会在消息插入那一霎那“变白”,而后者则没有任何…...

深度学习之人脸检测

在目标检测领域可以划分为了人脸检测与通用目标检测&#xff0c;往往人脸这方面会有专门的算法&#xff08;包括人脸检测、人脸识别、人脸其他属性的识别等等&#xff09;&#xff0c;并且和通用目标检测&#xff08;识别&#xff09;会有一定的差别&#xff0c;着主要来源于人…...

解决前后端发版本时候,手动清除浏览器缓存

在.html页面中添加标签 后端配置nginx,让index.html不缓存 location /index.html { add_header Cache-Control “no-cache, no-store”; }在vite.config.ts中添加 rollupOpyions: { output: { // 输出编译后的文件名称&#xff1a;【文件名称.时间戳】、【文件名称.版本号.…...

mysql8.4+mysql router读写分离

以下为容器环境内搭建 准备工作: 拉取镜像: 镜像版本mysql8.4container-registry.oracle.com/mysql/community-router8.4 下载mysql_shell mysql-shell-9.0.1-linux-glibc2.17-x86-64bit.tar.gz 下载地址: https://downloads.mysql.com/archives/shell/ 参考 这里对这篇文章…...

龙岩小程序报价/宁波seo在线优化公司

前面的话 HTML5不仅新增了语义型区块级元素及表单类元素&#xff0c;也新增了一些其他的功能性元素&#xff0c;这些元素由于浏览器支持等各种原因&#xff0c;并没有被广泛使用 文档描述 <details>主要用于描述文档或文档某个部分的细节&#xff0c;与<summary>配…...

南通个人网站制作/整站seo

在《通过一个模拟程序让你明白ASP.NET MVC是如何运行的》一文中我通过一个普通的ASP.NET Web程序模拟了ASP.NET MVC的执行流程&#xff0c;现在我们通过类似的原理创建一个用于模拟WCF服务端和客户端工作原理的模拟程序。[源代码从这里下载] 目录 一、基本的组件和执行流程 二、…...

织梦网站模板做的网站有哪些/最快的新闻发布平台

1. 安装 vue-devtools 调试工具 vue 官方提供的 vue-devtools 调试工具&#xff0c;能够方便开发者对 vue 项目进行调试与开发。 Chrome 浏览器在线安装 vue-devtools &#xff1a;https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajb…...

wordpress 获得分类名称/百度手机卫士

1 《泛型编程与STL》侯捷译or英文版 --------- 这本书里从STL的设计哲学切入&#xff0c;讲述了STL为什么要那样设计&#xff0c;五种迭代器如何把容器与算法完美地解耦合。它详细介绍了每一个STL容器与算法&#xff0c;包括接口原型、参数要求、执行时间复杂度等等。
看这本书…...

网站平台维护/百度推广好做吗

一、Varish的简介Varnish是一款高性能的开源HTTP加速器&#xff0c;挪威最大的在线报纸 Verdens Gang 使用3台Varnish代替了原来的12台Squid&#xff0c;性能比以前更好。在当前主流的Web架构中&#xff0c;Cache担任着越来越重要的作用。常见的基于浏览器的C/S架构&#xff0c…...

做垃圾网站怎么赚钱/关键词推广工具

1&#xff0c;使用 严格模式的使用很简单&#xff0c;只有在代码首部加入字符串 "use strict"。必须在首部即首部指其前面没有任何有效js代码除注释&#xff0c;否则无效 2.注意事项 &#xff08;1&#xff09;不使用var声明变量严格模式中将不通过&#xff0c;在…...