- This topic has 3 replies, 3 voices, and was last updated 14 years, 7 months ago by
larkost.
-
AuthorPosts
-
September 13, 2010 at 3:08 pm #379463
Westin
ParticipantI have the following checksums:
Mac OS X 10.6.4 Combo Update found by display name or checksum and verified in 18 seconds
Remote Desktop Client 3.3.2 found by display name or checksum and verified in less than one second
AirPort Base Station Update 2010-001 5.5.1 found by display name or checksum and verified in less than one second
Security Update 2010-005 for SnowLeopard found by display name or checksum and verified in 1 second
Java For MacOS X 10.6 Update 2 found by display name or checksum and verified in 1 second
Snow Leopard Graphics Update 1.0 found by display name or checksum and verified in 1 second
Safari 5.0.2 Leopard-SnowLeopard found by display name or checksum and verified in less than one second
Server Admin Tools 10.6.4 found by display name or checksum and verified in 4 seconds
Office 2008 12.2.0 for Mac [u][b]found by guessed name[/b][/u] and verified in 13 seconds
Office 2008 12.2.6 Update found by display name or checksum and verified in 17 secondsWhy is my “Office 2008 12.2.0 for Mac” installation program being found by “guessed name” and all the others are being found by “display name”?
“Office 2008 12.2.0 for Mac” passes the checksum process but why is it saying “guessed name”?
September 13, 2010 at 4:29 pm #379464Allister Banks
ParticipantGreat question! Let’s read the tea leaves:
/AddOns/InstaUp2Date/Resources/installerPackage.py, line 419(rev. 352):[code]
# try in the cache by displayName and checksum
foundPath = self._findItemInCaches(self.displayName, self.checksumType, self.checksumValue, displayName=self.displayName, additionalSourceFolders=additionalSourceFolders, progressReporter=progressReporter)
if foundPath is not None:
# add the item to the found items
self.addItemToVerifiedFiles(‘%s:%s’ % (self.checksumType, self.checksumValue), foundPath)
if progressReporter is not None:
progressReporter.update(statusMessage=’found by display name or checksum and verified in %s’ % (secondsToReadableTime(time.time() – startTime)))
progressReporter.finishLine()
self.filePath = foundPath
returnworkingName = self.displayName
# get an idea of what the name is
if parsedPath.scheme in [‘http’, ‘https’]:
workingName = os.path.basename(parsedPath.path)
else:
workingName = self.source# look for the item in the caches
if progressReporter is not None:
progressReporter.update(statusMessage=’looking in the source folders by guessed name and checksum’)# look by guessed name
foundPath = self._findItemInCaches(workingName, self.checksumType, self.checksumValue, displayName=self.displayName, additionalSourceFolders=additionalSourceFolders, progressReporter=progressReporter)
if foundPath is not None:
# add the item to the found items
self.addItemToVerifiedFiles(‘%s:%s’ % (self.checksumType, self.checksumValue), foundPath)
if progressReporter is not None:
progressReporter.update(statusMessage=’found by guessed name and verified in %s’ % (secondsToReadableTime(time.time() – startTime)))
progressReporter.finishLine()
self.filePath = foundPath
return
[/code]Keep in mind, while I try to figure this out myself, that you don’t need the full path in the catalog file, as long as it’s in one of the two folders InstaUp2Date will look in(/Caches/InstaUp2DateCache and /InstallerFiles/InstaUp2DatePackages, although I try to keep DMG’s in the former and pkg/mpkgs in the latter).
Allister
September 13, 2010 at 11:41 pm #379466Westin
ParticipantAllister,
To answer your question:
I don’t have a full path set for my “Office 2008 12.2.0 for Mac” installation program:
[b]Office 2008 12.2.0 for Mac Office Installer.mpkg sha1:a20f320c372ecdb5a914a2ba67aa557704632a77[/b]
—————————————————–
I have the following checksums:
Mac OS X 10.6.4 Combo Update found by display name or checksum and verified in 18 seconds
Remote Desktop Client 3.3.2 found by display name or checksum and verified in less than one second
AirPort Base Station Update 2010-001 5.5.1 found by display name or checksum and verified in less than one second
Security Update 2010-005 for SnowLeopard found by display name or checksum and verified in 1 second
Java For MacOS X 10.6 Update 2 found by display name or checksum and verified in 1 second
Snow Leopard Graphics Update 1.0 found by display name or checksum and verified in 1 second
Safari 5.0.2 Leopard-SnowLeopard found by display name or checksum and verified in less than one second
Server Admin Tools 10.6.4 found by display name or checksum and verified in 4 seconds
Office 2008 12.2.0 for Mac [u][b]found by guessed name[/b][/u] and verified in 13 seconds
Office 2008 12.2.6 Update found by display name or checksum and verified in 17 secondsWhy is my “Office 2008 12.2.0 for Mac” installation program being found by “guessed name” and all the others are being found by “display name”?
“Office 2008 12.2.0 for Mac” passes the checksum process but why is it saying “guessed name”?
September 14, 2010 at 4:11 am #379470larkost
ParticipantWhen InstaUp2Date looks for files it finds them in a number of ways:
1) an absolute path
2) relative to PWD
3) relative to any of the caches
4) by the checksum string in the names in the caches
5) a name guessed from the name/path supplied (could be full paths or URLs)
6) the display name (the human readable name)
7) opens a connection the the http server and grabs the headers to see if there is something there that would give a clue (content-disposition)
8) tries to guess the name from the URL that the connection settles on (may times these things bounce around a bit before finding the final url)
9) finally it will download the item
You happen to be seeing #5 in that path. I recently changed things so that each point is clearer. Before things were a bit more wound through two different methods and confused me at times.
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed