To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9750
  Request change to ptreleases.cgi
 
I have a request for a change to be made to the ptreleases.cgi script that keeps track of all parts updates. Unfortunately, if anyone has actually implemented support for automatic updates using this script, my suggested change might not be (...) (20 years ago, 20-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) I always thought it should emit XML, which would make it really easy to add more info (like what you're suggesting) without affecting backwards compatibility. Maybe it's not too late to do that. From looking at the logs from the last few days, (...) (20 years ago, 20-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) Do you want sizes for the ZIP files or the ARJ-format EXEs? Steve (20 years ago, 20-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) Well, I think both would be appropriate. At this point, I haven't decided if I want to track down an open source unzip library to unzip the zip files, or just execute the other ones directly from LDView. But from the standpoint of the file (...) (20 years ago, 20-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) Yes, that would be me. I had a messed up bug in my HTTP download code that took me a long time to track down. (Note that the bug didn't cause the unusally large number of downloads of the file; tracking down the bug did.) In general, I'm not a (...) (20 years ago, 20-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
Hey all (interested parties), Please take a look at (URL) let me know what you think. This is a temporary script and URL. Please don't think this is the final configuration. I'm working on a (more) final version, hopefully it will be ready before (...) (20 years ago, 27-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
I like it. One other change you didn't mention is the addition of the BASE downloads. That's also very nice, because it allows an app to bootstrap itself completely, without requiring the user to first install LDraw. (Having said that, I'm not (...) (20 years ago, 27-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) That's one. :) (...) Michael had asked for that awhile ago. (...) Good point, I hadn't thought of that. (...) Hmmm, what *is* up with those dates? I'll go fix'em. (...) Yeah, I dunno. We certainly could go create ZIPs for those old updates. (...) (20 years ago, 29-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) Pft. Make ptrelease support a library version field, which would be 1 for the current lib, and 2 for the new one. :) (20 years ago, 29-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) Yeah, but I was thinking more for programs that were developed to support one dataset, and couldn't cope with a different model for distribution files. I know, I know -- require the coders to work more intelligently. ;) Steve (20 years ago, 29-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) OK, the URL is still temporary, but the script should be more-or-less done. Have at it, look for deficiencies, bugs, etc. If you don't remember the options, try adding ?help=1 to the url. I haven't thought very hard about the XML format -- if (...) (20 years ago, 31-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) I'm not really up on XML, but it looks fine to me. I do have a question, though. Is there some significance that I am missing to naming the root element "opt"? --Travis Cobbs (20 years ago, 31-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) There's no significance, AFAIK. The Perl module, XML::Simple, wraps the <opt> tag around everything automatically. I scanned the docs, but didn't see how to control it. Steve (20 years ago, 31-Jul-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) In XML::Simple the root element name is controlled by the RootName option (RootName => 'string') (URL)_'string'_#_out_-_handy Chris (20 years ago, 1-Aug-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) Thanks, Chris! I'll add this shortly. Steve (20 years ago, 2-Aug-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) Looking at this some more... The script currently returns XML with 3 lists of distribution files: BASE - file ZIP - file ARJ COMPLETE - file ZIP - file ARJ UPDATE - file ZIP - file ARJ - file ZIP - file ARJ - file ZIP ... It could be argued (...) (20 years ago, 2-Aug-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) I actually considered that when you made your original post. However, there are actually multiple different perfectly valid heirarchies, and for this reason I think the flat list is better overall. Here's an example with a different (...) (20 years ago, 2-Aug-04, to lugnet.cad.dev)
 
  Re: Request change to ptreleases.cgi
 
(...) I tend to agree with your thought, and I'm going to switch the script over to a flat-list model. Although I think the hierarchy of release -> distr type -> file format makes the most sense; and (somewhat) addresses your earlier question about (...) (20 years ago, 2-Aug-04, to lugnet.cad.dev)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR