Opened 11 years ago

Last modified 11 years ago

#38697 new defect

mdmg says it's up-to-date when it isn't

Reported by: rogerdpack@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.1.3
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

after running "port mdmg xxx" once, then rebuilding one of "xxx's" dependencies, then running "port mdmg xxx" a second time, it responded like this:

$ port mdmg rdp-projects
...
(it rebuilds mplayer-edl, which has changed)
--->  Staging mplayer-edl into destroot
...
--->  Creating disk image for rdp-projects-0
--->  Disk Image for rdp-projects-0 is up-to-date

and appears not to recreate the .dmg file, even though dependencies had changed so..I guess this is a bug?

Change History (3)

comment:1 Changed 11 years ago by rogerdpack@…

as a note, the dependency in this case reinstalled because of "Portfile changed since last build; discarding previous state." FWIW

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase
Description: modified (diff)

According to the code, the mtime of the disk image is compared to the mtime of the portfile. If the disk image is newer, it is considered to be up to date. Dependencies are not considered. This could be considered a bug. To work around it, you can manually delete the old disk image to allow MacPorts to create a new one.

comment:3 Changed 11 years ago by afb@…

Also, there has been no reason to build disk images since Tiger. They were replaced with flat packages (port mpkg), for Leopard and beyond.

Note: See TracTickets for help on using tickets.