CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 10483|回复: 4

github慢的解决方案

[复制链接]
发表于 2013-6-5 15:38:36 | 显示全部楼层 |阅读模式
1) 从web界面下载zip文件,虽然慢,但是可以不被中断
2) 根据下面这个文件给unzip 打补丁,否则解压会出现 file name too long

https://www.olimex.com/forum/index.php?topic=812.105

Unzip is not good, it is bugged, it fails to extract symbolic links from github zips (and other big ones).
Usually you get an error "file name too long" or something like that, at the end of the progress list.

You can fix it if you are in that mood :
download the source of unzip60
http://sourceforge.net/projects/infozip/files/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz/download

then apply this patch on it:
Code: [url=][Select][/url]
--- ./process.c
+++ ./process.c
@@ -1751,6 +1751,12 @@
         = (G.crec.general_purpose_bit_flag & (1 << 11)) == (1 << 11);
#endif

+#ifdef SYMLINKS
+    /* Initialize the symlink flag, may be set by the platform-specific
+       mapattr function.  */
+    G.pInfo->symlink = 0;
+#endif
+
     return PK_COOL;

} /* end function process_cdir_file_hdr() */
then build it and install it.
回复

使用道具 举报

发表于 2013-7-10 17:58:11 | 显示全部楼层
最近都是挂vpn clone
回复 支持 反对

使用道具 举报

发表于 2013-9-10 20:18:48 | 显示全部楼层
感谢楼主提供patch.
BTW: 可以用7z解压zip文件, 就不会出现file name too long问题了
回复 支持 反对

使用道具 举报

发表于 2013-9-13 12:29:07 | 显示全部楼层
beiyuuyieb 发表于 2013-9-10 20:18
感谢楼主提供patch.
BTW: 可以用7z解压zip文件, 就不会出现file name too long问题了 ...

这个简单好用,谢谢!
回复 支持 反对

使用道具 举报

发表于 2014-2-14 00:29:11 | 显示全部楼层
我也是下载zip,但是不知道如何make这玩意儿,算了,下载tar.gz更简单
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-4-18 21:24 , Processed in 0.021438 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部