Extras icon indicating copy to clipboard operation
Extras copied to clipboard

MuPDf cannot be updated from 1.17.0-rc1 to 1.17.0.

Open NamelessUzer opened this issue 4 years ago • 9 comments

MuPDf cannot be updated from 1.17.0-rc1 to 1.17.0. I believe the reason is they have the same extract dir mupdf-1.17.0-windows.

NamelessUzer avatar May 05 '20 13:05 NamelessUzer

i think you should uninstall / install in this scenario

mark05e avatar May 31 '20 07:05 mark05e

i think you should uninstall / install in this scenario

This of course can solve the problem. But is it OK to let users follow your method every time when they encounter the same situations?

NamelessUzer avatar Jul 23 '20 02:07 NamelessUzer

Sure - Though I say this from personal experience.

mark05e avatar Jul 23 '20 04:07 mark05e

Just went through the script again and observed that $matchHead variable was used when extracting the directory.

I have proposed a change to use the $version variable. Difference between the two variables:

  • $version: 3.7.1
  • $matchHead: Returns first two or three digits seperated by a dot (e.g. 3.7.1-rc.1 = 3.7.1 , 3.7.1.2-rc.1 = 3.7.1 or 3.7-rc.1 = 3.7)

mark05e avatar Jul 23 '20 04:07 mark05e

@ssfjhh - looks like the first proposed solution is the way to go.

Updates to release candidates are not desired

ref

mark05e avatar Jul 23 '20 14:07 mark05e

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 27 '21 21:10 stale[bot]

The problem reappeared again. Should we reopen this issue? mupdf has updated to 1.20.0 . https://github.com/ScoopInstaller/Extras/blob/22820921192115c8f58863d60fb203805af7cc9f/bucket/mupdf.json#L2 But scoop treated 1.20.0-rc2 as the latest version. `> scoop update mupdf

mupdf: 1.20.0-rc2 (latest version) Latest versions for all apps are installed! For more information try 'scoop status'`

NamelessUzer avatar Jun 15 '22 02:06 NamelessUzer

Actually, it shouldn't consider rcX versions, because they're release candidates. The checkver needs to be modified.

rashil2000 avatar Jun 15 '22 04:06 rashil2000

Set force_update to true will force scoop update to bucket version and may temporally fix the issue

scoop config force_update true

niheaven avatar Jun 15 '22 05:06 niheaven