Skip to content
zoryn/ maintainer-assistant

zoryn clone

Clone a source package from the ALT Linux git repository.

zoryn clone <package>

The repository is resolved through the RDB clone_url API, which returns the ready-to-clone git URL for the correct bucket:

  • Gear packages: https://git.altlinux.org/gears/<first-letter>/<package>.git
  • SRPM packages: https://git.altlinux.org/srpms/<first-letter>/<package>.git

Because the URL comes from the repository database, packages that lack recent build-task history (last built years ago) still clone correctly.

Sets gears as the remote name. Use --init-gitery to also create the repository on gitery and add a remote for pushing.

Configuration

The API endpoint used to resolve the clone URL can be overridden in ~/.zoryn:

[clone]
api_url = "https://rdb.altlinux.org/api/package/clone_url"

When unset, it defaults to {[rdb] api_url}/package/clone_url. See configuration.

Examples

zoryn clone ocaml          # clone ocaml package
zoryn clone vcdimager      # clone vcdimager (SRPM package)