shelichrg Posted May 15, 2009 Report Share Posted May 15, 2009 First of all, I'd like to say thanks to Flo for making this awesome product, I've been looking for something like this for ages. Got some others hooked on it too . I've read through the forum and haven't seen anyone with a problem quite like mine so I thought I should ask. I'm using Ketarin 1.0.5.254 The issue I'm having with sourceforge is that when I download different packages from the same group it overwrites the first package. For example, I use Xampp and the Perl addon. I download the xampp installer first from here then the Perl addon from here. The addon always overwrites the Xampp installer. The download path I use is {url}xampp-perl-addon-{version}-installer.exe for Perl and {url}xampp-win32-{version}-installer.exe for xampp {url} for both = http://downloads.sourceforge.net/xampp/ and I get the versions from the specific packages. Am I doing something wrong or is the way the program is supposed to work? If needs be I can export the definitions I'm using for both to help clear this up. Link to comment Share on other sites More sharing options...
CybTekSol Posted May 15, 2009 Report Share Posted May 15, 2009 Welcome shelichrg, No... Ketarin is not supposed to do this when everything is configured properly. Please post your xml exports of these and we'll try to sort things out. Link to comment Share on other sites More sharing options...
FranciscoR Posted May 15, 2009 Report Share Posted May 15, 2009 (edited) Funny, I've had a similar issue recently while copying and pasting an existing job. 'Delete previous file' was checked so when I updated the second job, the original file was deleted. I have just checked that a different GUID is atributed to the job the instant you copy it, so maybe Flo as an idea of what the problem is ? Edited May 15, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
FranciscoR Posted May 15, 2009 Report Share Posted May 15, 2009 (edited) Yep, I reproduced it again. =) @ shelichrg: not sure if this is your exact problem, but for me this has nothing to do w/sourceforge. Did you follow a similar procedure? Original XML <?xml version="1.0" encoding="utf-16"?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="dfbe9b38-696a-4a8f-b6e8-4f6c9eec8bfb"> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator /> <CanBeShared>false</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <Variables> <item> <key> <string>app</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(\w+?\p{P}zip|\w+?\d\w+?\p{P}zip)</Regex> <Url>http://technet.microsoft.com/en-us/sysinternals/cc817881.aspx</Url> <Name>app</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(?:\</div>)\s+?(?:\</div>){1,}(?:\</td>).*(?:v)(\d{1,}\p{P}\d{1,3})</Regex> <Url>http://technet.microsoft.com/en-us/sysinternals/cc817881.aspx</Url> <Name>version</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <Category>Sysinternals</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation>D:\Programas\Sysinternals\Desktops_1.0.zip</PreviousLocation> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated>2009-01-25T19:30:53.461688</LastUpdated> <TargetPath>{target}\{category}\{appname}_{version}.{url:ext}</TargetPath> <FixedDownloadUrl>http://download.sysinternals.com/Files/{app}</FixedDownloadUrl> <Name>Desktops</Name> </ApplicationJob> </Jobs> Copied XML, w/changed appname and DL URL <?xml version="1.0" encoding="utf-16"?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="561c93d3-67a6-45e2-be02-2f2d28ce36d3"> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator /> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>false</ExclusiveDownload> <HttpReferer /> <Variables> <item> <key> <string>app</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(\w+?\p{P}zip|\w+?\d\w+?\p{P}zip)</Regex> <Url>http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx</Url> <Name>app</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(?:\</div>)\s+?(?:\</div>){1,}(?:\</td>).*(?:v)(\d{1,}\p{P}\d{1,3})</Regex> <Url>http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx</Url> <Name>version</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <Category>Sysinternals</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation>D:\Programas\Sysinternals\Desktops_1.0.zip</PreviousLocation> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated>2009-01-25T19:30:53.461688</LastUpdated> <TargetPath>{target}\{category}\{appname}_{version}.{url:ext}</TargetPath> <FixedDownloadUrl>http://download.sysinternals.com/Files/{app}</FixedDownloadUrl> <Name>SDelete</Name> </ApplicationJob> </Jobs> Result on update => Desktops.zip is deleted. I have just noticed that previous location is not removed upon copy...? Edited May 15, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
shelichrg Posted May 15, 2009 Author Report Share Posted May 15, 2009 Hi FranciscoR, thanks for the speedy reply. I sort of figured it had nothing to do with sourceforge, but as that was my only example, I used it . What I noticed from your definitions is that your previous location for both is the same <PreviousLocation>D:\Programas\Sysinternals\Desktops_1.0.zip</PreviousLocation> but mine are different. I do believe I also copied the job from Xampp to Perl, maybe there's something we missed. Here are my xml definitions: For Perl <?xml version="1.0" encoding="utf-16"?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="0179df2a-2e90-45a3-acaa-c521d05f69d5"> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator>{version}</VariableChangeIndicator> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>true</ExclusiveDownload> <HttpReferer /> <Variables> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>([0-9].[0-9].[0-9]-[0-9].[0-9].[0-9][0-9])</Regex> <Url>http://sourceforge.net/project/showfiles.php?group_id=61776&package_id=113693</Url> <StartText>http://hivelocity.dl.sourceforge.net/sourceforge/xampp</StartText> <EndText>/xampp-win32-1.7.1-installer.exe</EndText> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>url</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>http://downloads.sourceforge.net/xampp/</Regex> <Url>https://sourceforge.net/project/showfiles.php?group_id=61776&package_id=113693&release_id=272434</Url> <StartText>http://downloads.sourceforge.net/xampp/</StartText> <Name>url</Name> </UrlVariable> </value> </item> <item> <key> <string>updated</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>StartEnd</VariableType> <Regex /> <Url>http://sourceforge.net/project/showfiles.php?group_id=61776&package_id=113693&release_id=272434</Url> <StartText><small>(</StartText> <EndText> 06:37) </EndText> <Name>updated</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <Category>Development</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation>C:\Downloads\ketarin updates\xampp-perl-addon-5.8.6-2.0.54-installer.exe</PreviousLocation> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated>2009-05-14T10:48:21.210827</LastUpdated> <TargetPath>C:\Downloads\ketarin updates\</TargetPath> <FixedDownloadUrl>{url}xampp-perl-addon-{version}-installer.exe</FixedDownloadUrl> <Name>Xampp-Perl</Name> </ApplicationJob> </Jobs> for Xampp <?xml version="1.0" encoding="utf-16"?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="cd893188-9951-4862-8580-8ef4a67daf56"> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <CheckForUpdatesOnly>false</CheckForUpdatesOnly> <VariableChangeIndicator>{version}</VariableChangeIndicator> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <ExclusiveDownload>true</ExclusiveDownload> <HttpReferer /> <Variables> <item> <key> <string>version</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>(?<=win32-)\d*\.\d\.\d(?=\.exe)</Regex> <Url>http://sourceforge.net/project/showfiles.php?group_id=61776&package_id=89552#</Url> <StartText>http://hivelocity.dl.sourceforge.net/sourceforge/xampp</StartText> <EndText>/xampp-win32-1.7.1-installer.exe</EndText> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>url</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>RegularExpression</VariableType> <Regex>http://downloads.sourceforge.net/xampp/</Regex> <Url>http://sourceforge.net/project/showfiles.php?group_id=61776&package_id=89552#</Url> <StartText>http://downloads.sourceforge.net/xampp/</StartText> <Name>url</Name> </UrlVariable> </value> </item> <item> <key> <string>updated</string> </key> <value> <UrlVariable> <RegexRightToLeft>false</RegexRightToLeft> <VariableType>StartEnd</VariableType> <Regex /> <Url>http://sourceforge.net/project/showfiles.php?group_id=61776&package_id=89552#</Url> <StartText>> <small>(</StartText> <EndText> 18:50) </small></td></EndText> <Name>updated</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <ExecutePreCommand /> <Category>Development</Category> <SourceType>FixedUrl</SourceType> <PreviousLocation>C:\Downloads\ketarin updates\xampp-win32-1.7.1-installer.exe</PreviousLocation> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated>2009-04-28T01:25:12.660775</LastUpdated> <TargetPath>C:\Downloads\ketarin updates\</TargetPath> <FixedDownloadUrl>{url}xampp-win32-{version}-installer.exe</FixedDownloadUrl> <Name>xampp</Name> </ApplicationJob> </Jobs> Link to comment Share on other sites More sharing options...
FranciscoR Posted May 15, 2009 Report Share Posted May 15, 2009 AFTER update my <PreviousLocation> tag is also different. This is a new bug, we'll get Flo's feedback soon for sure. Link to comment Share on other sites More sharing options...
CybTekSol Posted May 16, 2009 Report Share Posted May 16, 2009 This may very well be a bug and I have noticed some other Ketarin 'housekeeping' anomalies such as the start/end text remnants that are let over after a variable type is changed as is demonstrated in the exports above. One item even has a start text remnant with no matching end text. To compensate for this in the past I have usually done this cleanup manually and it has never been an issue until now. Flo... can you take a look at the issues in this thread when you get a chance? On another note shelichrg... I noticed that you have a start/end text selection based upon a 'volatile' portion of the web page which is NEVER a good idea as it will fail as soon as the page changes. I haved used regex exclusively since the first month of using Ketarin as I have found it to be much more reliable. Link to comment Share on other sites More sharing options...
shelichrg Posted May 16, 2009 Author Report Share Posted May 16, 2009 Do you mean this part CybTekSol? <StartText>http://hivelocity.dl.sourceforge.net/sourceforge/xampp</StartText> I'm getting used to using regular expressions again since I haven't had to use them since university . So I should use the regex exclusively for the url? I hadn't thought of that. Can you show me an example of what you have? Link to comment Share on other sites More sharing options...
FranciscoR Posted May 17, 2009 Report Share Posted May 17, 2009 (edited) He means that part and this one <EndText>/xampp-win32-1.7.1-installer.exe</EndText> As well. This <EndText>, for instance, is problematic because it includes version and that will change when the file gets updated => error. As for removal, this as never caused any problem but both tags should be removed when you start using a regex variable. Regexes usually go in the regex field, check for instance the template section in the forum for some examples. I'm using only http://ketarin.canneverbe.com/forum/viewtopic.php?id=274 for all my Sourceforge jobs. --------------------------- Edited May 17, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
shelichrg Posted May 18, 2009 Author Report Share Posted May 18, 2009 (edited) @FranciscoR - I'm going to try the xml from the link you provided. I can see where you specifically mentioned not putting the release id in the download url which I did and the <end text> for both Xampp and Perl is the same and contained version numbers. I'll let you know the result after I import the xml and do the regex changes. Edit to report results of import The import template seems to have worked FranciscoR. I'll keep running it for a while and report if I have any problems. Thanks for all your help. Edited May 18, 2009 by shelichrg Link to comment Share on other sites More sharing options...
FranciscoR Posted May 18, 2009 Report Share Posted May 18, 2009 Nice to know. There are exceptions though, you might need to adjust regex from time to time, Sourceforge is not easy to template. Link to comment Share on other sites More sharing options...
CybTekSol Posted May 21, 2009 Report Share Posted May 21, 2009 Thank you FranciscoR for following-up on this with shelichrg. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now