Update message won't go away

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
Oizo
Posts: 72
Joined: Sat Nov 15, 2014 11:53 am

Update message won't go away

Post by Oizo »

I have recently used the Synology update to update the Mylar app on the Diskstation.
Now finally updates worked by clicking on "update" in the popup.
Befor that I had to update manually with sudo git pull.

But now the update message won't go away:
"A newer version is available. You're 6 commits behind. Update or Close"
When I try git pull:
"/volume1/@appstore/mylar/share/mylar$ sudo git pull
Password:
Already up-to-date. "

The GUID of the current development build is also the same as on github:

Configuration Options
Mylar Version: development
-- git build 6ab1715c53f95c758f5c5d09e56b003c74b0f593.
Python Version : 2.7.13
Language : en_US.UTF-8

How can I get rid of the message?
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Update message won't go away

Post by evilhero »

They Syno stuff is tied to the master branch, so that's what it's updating against. Your mylar is set to look against the development branch - thus the discrepancy.

The commit you mention is actually the master branch.

With mylar shutdown, edit the config.ini and find the git_branch value. If it's set to development, set it to master. If it's set to master, set it to development. Then save the config.ini and start mylar up. You shouldn't see the update message any longer.
Oizo
Posts: 72
Joined: Sat Nov 15, 2014 11:53 am

Re: Update message won't go away

Post by Oizo »

When I switch to Master it goes away - and when I switch back to development it is back again.
I have been on the development branch for years and would prefer to stay on that.
Is there anything else I can do?
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Update message won't go away

Post by evilhero »

When you updated using the Synology update to update Mylar it forced it basically do a 'git pull' against the Master branch - so the version you're running is tied to the Master branch.

Your config.ini is pointing to the development branch, which is the value that Mylar uses to compare commits behind, etc against.

I 'think' you'd have to do (from within the Mylar directory):

Code: Select all

git checkout development
git pull
That should put you on the development branch and then perform an update against the dev branch too (if it's needed). Just make sure you config.ini git_branch value is on development and you should be good to go from that point forward (updates might be different as it might still be tied to the SynoPkg Master installation - I haven't a clue in that particular regards unfortunately).

Otherwise, you'd possibly have to do away with the SynoPkg install and just use a straight git clone if you'd want to remain on the development branch without any further problems (this is me just best guessing here, I really don't have any idea about how the SynoPkg stuff works, I just know that it's always been tied to the Master branch).
Oizo
Posts: 72
Joined: Sat Nov 15, 2014 11:53 am

Re: Update message won't go away

Post by Oizo »

This is what happened when I tried git checkout development

/volume1/@appstore/mylar/share/mylar$ sudo git checkout development
Password:
Branch development set up to track remote branch development from origin.
Switched to a new branch 'development'

/volume1/@appstore/mylar/share/mylar$ sudo git pull
Already up-to-date.

So I guess this did not work.
I'll look into doing the git clone thing.

Thank you for the help
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Update message won't go away

Post by evilhero »

Oizo wrote: Tue May 29, 2018 6:35 pm This is what happened when I tried git checkout development

/volume1/@appstore/mylar/share/mylar$ sudo git checkout development
Password:
Branch development set up to track remote branch development from origin.
Switched to a new branch 'development'

/volume1/@appstore/mylar/share/mylar$ sudo git pull
Already up-to-date.

So I guess this did not work.
I'll look into doing the git clone thing.

Thank you for the help
Well all that means is that you're up-to-date on the development branch according to git. However if you're using the SynoPkg stuff, again it's tied to the Master branch. Because your config.ini is set to development, and now your git is set to development, you should be on the development branch and Mylar would be checking against said branch when querying updates.

When you start up Mylar, does it still indicate that you're not up-to-date or that you're behind in commits? If it does, what does the branch indicate that you're on (both at the bottom the page, and on the 1st tab of the configuration GUI) ?
Post Reply