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