// MsgSyncReq: install packages on the remote host // SPDX-License-Identifier: GPL-3.0-or-later // Copyright (C) 2021-2024 Simon Ruderich package sync import ( "fmt" "os" ) func (s *Sync) syncPackages() error { if len(s.req.Packages) == 0 { return nil } _, err := os.Stat("/etc/debian_version") if err == nil { return s.syncPackagesDebian() } // TODO: support more distributions return fmt.Errorf("not yet supported on this distribution") }