@ -204,15 +204,12 @@ func (up *updater) updateSynology() error {
if err != nil {
if err != nil {
return err
return err
}
}
if latest . Version == "" {
return fmt . Errorf ( "no latest version found for %q track" , up . track )
}
spkName := latest . SPKs [ osName ] [ arch ]
spkName := latest . SPKs [ osName ] [ arch ]
if spkName == "" {
if spkName == "" {
return fmt . Errorf ( "cannot find Synology package for os=%s arch=%s, please report a bug with your device model" , osName , arch )
return fmt . Errorf ( "cannot find Synology package for os=%s arch=%s, please report a bug with your device model" , osName , arch )
}
}
if ! up . confirm ( latest . Version) {
if ! up . confirm ( latest . SPKs Version) {
return nil
return nil
}
}
if err := requireRoot ( ) ; err != nil {
if err := requireRoot ( ) ; err != nil {
@ -832,10 +829,15 @@ func LatestTailscaleVersion(track string) (string, error) {
type trackPackages struct {
type trackPackages struct {
Version string
Version string
Tarballs map [ string ] string
Tarballs map [ string ] string
TarballsVersion string
Exes [ ] string
Exes [ ] string
ExesVersion string
MSIs map [ string ] string
MSIs map [ string ] string
MSIsVersion string
MacZips map [ string ] string
MacZips map [ string ] string
MacZipsVersion string
SPKs map [ string ] map [ string ] string
SPKs map [ string ] map [ string ] string
SPKsVersion string
}
}
func latestPackages ( track string ) ( * trackPackages , error ) {
func latestPackages ( track string ) ( * trackPackages , error ) {