You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When processing certain Sparkle feeds with no url specified in the enclosure, the error can't concat str to bytes can be produced. One Sparkle feed that produces this behavior is https://redsweater.com/touche/appcast.php, which does not include a url for v1.1.5.
<item>
<title>Touché 1.1.5</title>
<description><![CDATA[ <strong>Touché 1.1.5</strong> <ul> <li>Restore functionality of the app on recent versions of macOS</li> </ul> <p><strong>Note</strong>: unfortunately, updating from Touché 1.1.4 doesn't won't work as expected for this update. Please download Touché 1.1.5 directly and replace the copy of Touché on your Mac. ]]></description>
<pubDate>Tue, 17 Aug 2021 21:08:58 GMT</pubDate>
<enclosuresparkle:version="149"sparkle:shortVersionString="1.1.5"/>
<sparkle:informationalUpdate>true</sparkle:informationalUpdate>
<sparkle:minimumSystemVersion>10.12</sparkle:minimumSystemVersion>
<link>https://redsweater.com/touche/</link>
</item>
Steps to reproduce
I've created a download recipe for the Touché app that demonstrates this issue. The recipe is contained below.
When running the above recipe, AutoPkg 3.0rc2 produces this error:
% ./Code/autopkg run -vv "~/Library/AutoPkg/RecipeRobotTestOutput/Red Sweater Software/Touché.download.recipe"
**load_recipe time: 0.00034324999433010817
Processing ~/Library/AutoPkg/RecipeRobotTestOutput/Red Sweater Software/Touché.download.recipe...
WARNING: ~/Library/AutoPkg/RecipeRobotTestOutput/Red Sweater Software/Touché.download.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
SparkleUpdateInfoProvider
{'Input': {'appcast_url': 'https://redsweater.com/touche/appcast.php'}}
can't concat str to bytes
Failed.
Receipt written to ~/Library/AutoPkg/Cache/com.github.homebysix.download.Touché/receipts/Touché.download-receipt-20231015-144235.plist
The following recipes failed:
~/Library/AutoPkg/RecipeRobotTestOutput/Red Sweater Software/Touché.download.recipe
Error in com.github.homebysix.download.Touché: Processor: SparkleUpdateInfoProvider: Error: can't concat str to bytes
Nothing downloaded, packaged or imported.
Expected behavior
Items with no URL should be ignored during Sparkle feed parsing, since they're not useful for the purposes of automating software download.
Proposal
One solution for this is to skip enclosures without URLs specified, which I've submitted here: #907
Environment
OS version: 14.0
AutoPkg Version: 3.0rc2
The text was updated successfully, but these errors were encountered:
Description
When processing certain Sparkle feeds with no
url
specified in the enclosure, the errorcan't concat str to bytes
can be produced. One Sparkle feed that produces this behavior ishttps://redsweater.com/touche/appcast.php
, which does not include a url for v1.1.5.Steps to reproduce
I've created a download recipe for the Touché app that demonstrates this issue. The recipe is contained below.
When running the above recipe, AutoPkg 3.0rc2 produces this error:
Expected behavior
Items with no URL should be ignored during Sparkle feed parsing, since they're not useful for the purposes of automating software download.
Proposal
One solution for this is to skip enclosures without URLs specified, which I've submitted here: #907
Environment
The text was updated successfully, but these errors were encountered: