Mail Archives: geda-user/2012/03/17/16:17:06
On Sat, Mar 17, 2012 at 04:07:35PM +0300, Sergey Alyoshin wrote:
> 2012/3/16 Andrew Poelstra <asp11 AT sfu DOT ca>:
> > Or maybe somebody has already fixed it? I have not checket git HEAD
> > in a month or so.
>
> With following patch, file http://661.org/tmp/ramcard.pcb can be
> opened in pcb from git.
> Is it acceptable?
>
> diff --git a/src/parse_y.y b/src/parse_y.y
> index 2ae9f6c..22d02cc 100644
> --- a/src/parse_y.y
> +++ b/src/parse_y.y
> @@ -863,6 +863,8 @@ layer
>
> /* memory for name is already allocated */
> Layer->Name = $4;
> + if (Layer->Name == NULL)
> + Layer->Name = strdup("");
> LayerFlag[$3-1] = true;
> if (yyData->LayerN + 2 < $3)
> yyData->LayerN = $3 - 2;
Thanks for the patch Sergey. :)
I have applied it as commit 4bc7ae3823b8120fdf415ee17ca7726fab5c8dcf
DJ, it appears that the commit pushed successfully, but the commit
robot seems to have crashed:
titanic ~/Code/pcb$ git push
Enter passphrase for key '/home/username/.ssh/id_pcb':
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 661 bytes, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote: File "/geda/commit_robot/commit_robot_post-receive.py", line 471, in <module>
remote: sys.exit(main())
remote: File "/geda/commit_robot/commit_robot_post-receive.py", line 350, in main
remote: db = robot_db(robot_db_file)
remote: File "/geda/commit_robot/commit_robot_post-receive.py", line 126, in __init__
remote: self._dbcon = sqlite3.connect(self._dbfile, timeout=0, isolation_level=None)
remote: sqlite3.OperationalError: unable to open database file
To ssh://pcb/pcb.git
a044f40..4bc7ae3 master -> master
--
Andrew Poelstra
Email: asp11 at sfu.ca OR apoelstra at wpsoftware.net
Web: http://www.wpsoftware.net/andrew
"You shouldn't trust every quote you read on the Internet." -- Socrates
- Raw text -