Ticket #10212: fix_feeds_install_issue.patch

File fix_feeds_install_issue.patch, 1.0 KB (added by mathieu@…, 5 years ago)

Fix

  • 9.3_OpenWRT/gravity/scripts/feeds

    old new  
    9494        -d "./feeds/$name.tmp" or mkdir "./feeds/$name.tmp" or return 1; 
    9595        -d "./feeds/$name.tmp/info" or mkdir "./feeds/$name.tmp/info" or return 1; 
    9696 
    97         system("$mk -s prepare-mk TMP_DIR=\"$ENV{TOPDIR}/feeds/$name.tmp\""); 
     97        system("$mk -s prepare-mk OPENWRT_BUILD=0 TMP_DIR=\"$ENV{TOPDIR}/feeds/$name.tmp\""); 
    9898        system("$mk -s -f include/scan.mk IS_TTY=1 SCAN_TARGET=\"packageinfo\" SCAN_DIR=\"feeds/$name\" SCAN_NAME=\"package\" SCAN_DEPS=\"$ENV{TOPDIR}/include/package*.mk\" SCAN_DEPTH=5 SCAN_EXTRA=\"\" TMP_DIR=\"$ENV{TOPDIR}/feeds/$name.tmp\""); 
    9999        system("ln -sf $name.tmp/.packageinfo ./feeds/$name.index"); 
    100100 
     
    181181} 
    182182 
    183183sub get_installed() { 
    184         system("$mk -s prepare-tmpinfo"); 
     184        system("$mk -s prepare-tmpinfo OPENWRT_BUILD=0"); 
    185185        clear_packages(); 
    186186        parse_package_metadata("./tmp/.packageinfo"); 
    187187        %installed = %package;