Closed jyhi closed 9 years ago
Marked as TODO. Will be added in rpm/glob-escapes
.
By the way Icenowy said that she (?) is planning to forbid me to make changes in autobuild. Shall I make a fork?
TO OTHER CONTRIBUTORS
The best and easiest way to perform such escape is to include a python script and do the WTF, glob.escape(pathname)
job, and pass the escaped stuffs to bash.glob.escape(pathname)
is only available since Py 4.3. Wow such dependency tree, let's make it bash. (Or include it? Not so graceful then.)
Well, we can pass stdin to python so there is no #!/usr/bin/env python
. (。)
@TheNextProject Maybe you can add this. It should replace rpmspace stuffs.
...Just change it... He's never called down when going by ab3. He should make fixes to suit his "philosophies", when he can make changes.
-----原始邮件----- 发件人: "Mingye Wang" notifications@github.com 发送时间: 2014/10/12 5:36 收件人: "AOSC-Dev/autobuild3" autobuild3@noreply.github.com 主题: Re: [autobuild3] RPM Build error when spaces exist in file name (#3)
Marked as TODO. Will be added in rpm/glob-escapes. By the way Icenowy said that she (?) is planning to forbid me to make changes in autobuild. Shall I make a fork? TO OTHER CONTRIBUTORS The best and easiest way to perform such escape is to include a python script and do the glob.escape(pathname) job, and pass the escaped stuffs to bash. Well, we can pass stdin to python so there is no #!/usr/bin/env python. (。) — Reply to this email directly or view it on GitHub.=
And here are my `philosophies':
2-space indents, fuck the tabs (Essential for 72-col terminal users like me)
Use a one-liner on short functions
Use lowercase letters. (my Shift key will soon break if I use autobuild every day)
Keep it small and simple and make clever extensions.
Just calm down... No need for a fight over this
-----原始邮件----- 发件人: "Mingye Wang" notifications@github.com 发送时间: 2014/10/12 5:58 收件人: "AOSC-Dev/autobuild3" autobuild3@noreply.github.com 抄送: "Jeff Bai" jeffbaichina@members.fsf.org 主题: Re: [autobuild3] RPM Build error when spaces exist in file name (#3)
And here are my `philosophies': 2-space indents and fuck the tabs Use a one-liner on short functions Use lowercase letters. (my Shift key will soon break if I use autobuild every day) — Reply to this email directly or view it on GitHub.
INDENT WAR (. 2014-10-12 下午10:39于 "Jeff Bai" notifications@github.com写道:
Just calm down... No need for a fight over this
-----原始邮件----- 发件人: "Mingye Wang" notifications@github.com 发送时间: 2014/10/12 5:58 收件人: "AOSC-Dev/autobuild3" autobuild3@noreply.github.com 抄送: "Jeff Bai" jeffbaichina@members.fsf.org 主题: Re: [autobuild3] RPM Build error when spaces exist in file name (#3)
And here are my `philosophies': 2-space indents and fuck the tabs Use a one-liner on short functions Use lowercase letters. (my Shift key will soon break if I use autobuild every day) — Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub https://github.com/AOSC-Dev/autobuild3/issues/3#issuecomment-58802237.
@TheNextProject 这次变成我挖坑不填了 OAO
@TheNextProject Good News: OS3 has Py3.4
# lib/pyglob.sh
abreqexe python3
pyglob(){
python3 << _EOF
import glob
print(glob.escape("$1"))
_EOF
# "'" + glob.escape("$1") + "'" ?
# echo "'$1'" ?
}
# Also try:
# while read line => Redirect code to a temporary buffer like &5
# python3 <&5
Or shall we just use ' '
to wrap the files?
I am just not sure how to implement this.
在 2014年10月19日,上午7:24,Mingye Wang notifications@github.com 写道:
Read http://www.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html
— Reply to this email directly or view it on GitHub.
Fixed.
For example, when building scribus 1.4.4:
RPM build errors:
[ERROR]: RPM PACKING FAILED.
It seems that RPM does not support spaces in file name, and it does cause RPM packing failing.