Skip to content

examples/sync-rebuild: handle rebuild targets that have an AUR update #1139

@AladW

Description

@AladW

When a rebuild target has an AUR update, it will be included in rest and thus considered a target not in the local repository.

sync-rebuild: the following targets are unavailable in the local repository
gmsh trilinos petsc
sync-rebuild: with cached entries:

Instead, pass the targets to aur-sync or print a suitable message.

AUR updates may also introduce new dependencies:

raceback (most recent call last):
  File "/home/user/.local/bin/aur-sync-rebuild", line 359, in <module>
    main({i:1 for i in args.targets}, args.database, aurdest, 
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/bin/aur-sync-rebuild", line 289, in main
    repo_targets_ordered[name] = repo_targets[name]
                                 ~~~~~~~~~~~~^^^^^^
KeyError: 'voro++'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions