Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With the "--repo" option, paru does synchronization operations twice #1262

Closed
refola opened this issue Oct 13, 2024 · 3 comments
Closed

With the "--repo" option, paru does synchronization operations twice #1262

refola opened this issue Oct 13, 2024 · 3 comments

Comments

@refola
Copy link

refola commented Oct 13, 2024

Affected Version

I first encountered this a while ago (possibly when I first used paru), but didn't take note at the time.

paru -V
paru v2.0.4 - libalpm v15.0.0

Description

Running a paru sync operation with --repo performs the sync operation twice. I expect that, e.g., paru --repo -Sy should only sync the mirrors once.

Have you checked previous issues?
I searched for any issue with "--repo" in it, but GitHub's search ate the -- and the 15 pages of results seemed to all be generic references to some "repo" or another. I did Ctrl+F search each page of results for --repo, and it's not in any of the titles.

Output

Include the FULL output of any relevant commands/configs
I'm scripting it a bit to show how it's the same with --repo before and after the pacman operation, and applies the same to -Sy, -Syu, and -Syuw.

Don't cut parts of the input always include the FULL thing

> PS1='> '; sudo -v; for op in '-Sy' '-Syu' '-Syuw'; do for ops in "$op --repo" "--repo $op"; do cmd="paru $ops"; echo; echo "$PS1$cmd"; $cmd; done; done

> paru -Sy --repo
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date

> paru --repo -Sy
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date

> paru -Syu --repo
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do

> paru --repo -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do

> paru -Syuw --repo
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do

> paru --repo -Syuw
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do

paru.conf and pacman.conf are usually always relevant
I don't think i changed them, but here they are (copied with names edited to comply with GitHub's file extension filter).
pacman.conf.txt
paru.conf.txt

@Morganamilo
Copy link
Owner

I don't see the same thing on my end. Mind posting the output with PARU_DEBUG=1?

@refola
Copy link
Author

refola commented Nov 17, 2024

ralju@xavsam:~$ PARU_DEBUG=1 paru --repo -Sy
debug: <paru> Config {
    section: Some(
        "options",
    ),
    args: Args {
        bin: "pacman",
        op: "sync",
        args: [
            Arg {
                key: "y",
                value: None,
            },
        ],
        targets: [],
    },
    globals: Args {
        bin: "pacman",
        op: "sync",
        args: [],
        targets: [],
    },
    cols: Some(
        212,
    ),
    op: Sync,
    raur: Handle {
        client: Client {
            accepts: Accepts {
                gzip: true,
            },
            proxies: [
                Proxy(
                    System(
                        {},
                    ),
                    None,
                ),
            ],
            referer: true,
            default_headers: {
                "accept": "*/*",
                "user-agent": "paru/2.0.4",
            },
        },
        url: "https://aur.archlinux.org/rpc",
    },
    fetch: Fetch {
        clone_dir: "/home/ralju/.cache/paru/clone",
        diff_dir: "/home/ralju/.cache/paru/diff",
        git: "git",
        git_flags: [],
        aur_url: Url {
            scheme: "https",
            cannot_be_a_base: false,
            username: "",
            password: None,
            host: Some(
                Domain(
                    "aur.archlinux.org",
                ),
            ),
            port: None,
            path: "/",
            query: None,
            fragment: None,
        },
    },
    cache: {},
    need_root: true,
    pacman: Config {
        root_dir: "/",
        db_path: "/var/lib/pacman/",
        cache_dir: [
            "/var/cache/pacman/pkg/",
        ],
        hook_dir: [
            "/etc/pacman.d/hooks/",
        ],
        gpg_dir: "/etc/pacman.d/gnupg/",
        log_file: "/var/log/pacman.log",
        hold_pkg: [
            "pacman",
            "glibc",
            "manjaro-system",
        ],
        ignore_pkg: [],
        ignore_group: [],
        architecture: [
            "x86_64",
        ],
        xfer_command: "",
        no_upgrade: [],
        no_extract: [],
        clean_method: [
            "KeepInstalled",
        ],
        sig_level: [
            "PackageRequired",
            "PackageTrustedOnly",
            "DatabaseOptional",
            "DatabaseTrustedOnly",
        ],
        local_file_sig_level: [
            "PackageOptional",
            "PackageTrustedOnly",
        ],
        remote_file_sig_level: [],
        download_user: None,
        use_syslog: false,
        color: false,
        use_delta: 0.0,
        total_download: false,
        check_space: true,
        verbose_pkg_lists: false,
        disable_download_timeout: false,
        parallel_downloads: 1,
        disable_sandbox: false,
        chomp: false,
        repos: [
            Repository {
                name: "core",
                servers: [
                    "https://ridgewireless.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://irltoolkit.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://opencolo.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://codingflyboy.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://nocix.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://mnvoip.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://coresite.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://volico.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://forksystems.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://repo.ialab.dsu.edu/manjaro/stable/core/x86_64",
                    "https://ohioix.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://southfront.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://uvermont.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://nnenix.mm.fcix.net/manjaro/stable/core/x86_64",
                    "https://mirror.math.princeton.edu/pub/manjaro/stable/core/x86_64",
                    "https://ask4.mm.fcix.net/manjaro/stable/core/x86_64",
                ],
                sig_level: [
                    "PackageRequired",
                    "PackageTrustedOnly",
                    "DatabaseOptional",
                    "DatabaseTrustedOnly",
                ],
                usage: [
                    "All",
                ],
            },
            Repository {
                name: "extra",
                servers: [
                    "https://ridgewireless.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://irltoolkit.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://opencolo.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://codingflyboy.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://nocix.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://mnvoip.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://coresite.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://volico.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://forksystems.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://repo.ialab.dsu.edu/manjaro/stable/extra/x86_64",
                    "https://ohioix.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://southfront.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://uvermont.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://nnenix.mm.fcix.net/manjaro/stable/extra/x86_64",
                    "https://mirror.math.princeton.edu/pub/manjaro/stable/extra/x86_64",
                    "https://ask4.mm.fcix.net/manjaro/stable/extra/x86_64",
                ],
                sig_level: [
                    "PackageRequired",
                    "PackageTrustedOnly",
                    "DatabaseOptional",
                    "DatabaseTrustedOnly",
                ],
                usage: [
                    "All",
                ],
            },
            Repository {
                name: "community",
                servers: [
                    "https://ridgewireless.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://irltoolkit.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://opencolo.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://codingflyboy.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://nocix.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://mnvoip.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://coresite.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://volico.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://forksystems.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://repo.ialab.dsu.edu/manjaro/stable/community/x86_64",
                    "https://ohioix.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://southfront.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://uvermont.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://nnenix.mm.fcix.net/manjaro/stable/community/x86_64",
                    "https://mirror.math.princeton.edu/pub/manjaro/stable/community/x86_64",
                    "https://ask4.mm.fcix.net/manjaro/stable/community/x86_64",
                ],
                sig_level: [
                    "PackageRequired",
                    "PackageTrustedOnly",
                    "DatabaseOptional",
                    "DatabaseTrustedOnly",
                ],
                usage: [
                    "All",
                ],
            },
            Repository {
                name: "multilib",
                servers: [
                    "https://ridgewireless.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://irltoolkit.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://opencolo.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://codingflyboy.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://nocix.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://mnvoip.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://coresite.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://volico.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://forksystems.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://repo.ialab.dsu.edu/manjaro/stable/multilib/x86_64",
                    "https://ohioix.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://southfront.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://uvermont.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://nnenix.mm.fcix.net/manjaro/stable/multilib/x86_64",
                    "https://mirror.math.princeton.edu/pub/manjaro/stable/multilib/x86_64",
                    "https://ask4.mm.fcix.net/manjaro/stable/multilib/x86_64",
                ],
                sig_level: [
                    "PackageRequired",
                    "PackageTrustedOnly",
                    "DatabaseOptional",
                    "DatabaseTrustedOnly",
                ],
                usage: [
                    "All",
                ],
            },
        ],
    },
    alpm: Alpm {
        alpm: Some(
            Alpm,
        ),
    },
    color: Colors {
        enabled: false,
        field: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        error: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        warning: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        bold: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        upgrade: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        base: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        action: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        sl_repo: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        sl_pkg: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        sl_version: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        sl_installed: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        ss_repo: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        ss_name: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        ss_ver: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        ss_stats: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        ss_orphaned: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        ss_installed: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        ss_ood: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        code: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        news_date: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        old_version: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        new_version: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        install_version: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        number_menu: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        group: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        stats_line_separator: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
        stats_value: Style {
            foreground: None,
            background: None,
            blink: false,
            bold: false,
            dimmed: false,
            hidden: false,
            italic: false,
            reverse: false,
            strikethrough: false,
            underline: false,
        },
    },
    targets: [],
    aur_url: Url {
        scheme: "https",
        cannot_be_a_base: false,
        username: "",
        password: None,
        host: Some(
            Domain(
                "aur.archlinux.org",
            ),
        ),
        port: None,
        path: "/",
        query: None,
        fragment: None,
    },
    aur_rpc_url: None,
    arch_url: Url {
        scheme: "https",
        cannot_be_a_base: false,
        username: "",
        password: None,
        host: Some(
            Domain(
                "archlinux.org",
            ),
        ),
        port: None,
        path: "/",
        query: None,
        fragment: None,
    },
    build_dir: "/home/ralju/.cache/paru/clone",
    cache_dir: "/home/ralju/.cache/paru",
    state_dir: "/home/ralju/.local/state/paru",
    devel_path: "/home/ralju/.local/state/paru/devel.toml",
    config_path: Some(
        "/etc/paru.conf",
    ),
    news: 0,
    stats: false,
    order: false,
    gendb: false,
    redownload: No,
    rebuild: No,
    remove_make: No,
    sort_by: Votes,
    search_by: NameDesc,
    limit: 0,
    sort_mode: TopDown,
    mode: Mode(
        REPO,
    ),
    aur_filter: false,
    interactive: false,
    completion_interval: 7,
    help: false,
    version: false,
    skip_review: false,
    no_check: false,
    no_confirm: false,
    devel: true,
    clean_after: false,
    provides: Yes,
    pgp_fetch: true,
    combined_upgrade: false,
    batch_install: false,
    use_ask: false,
    save_changes: false,
    clean: 0,
    optional: false,
    complete: false,
    print: false,
    news_on_upgrade: false,
    comments: false,
    ssh: false,
    keep_repo_cache: false,
    fail_fast: false,
    keep_src: false,
    sign: No,
    sign_db: No,
    pre_build_command: None,
    makepkg_bin: "makepkg",
    pacman_bin: "pacman",
    pacman_conf_bin: None,
    git_bin: "git",
    gpg_bin: "gpg",
    sudo_bin: "sudo",
    pkgctl_bin: "pkgctl",
    bat_bin: "bat",
    fm: None,
    sudo_loop: [],
    mflags: [],
    git_flags: [],
    gpg_flags: [],
    sudo_flags: [],
    bat_flags: [],
    fm_flags: [],
    chroot_flags: [],
    pager_cmd: None,
    devel_suffixes: [
        "-git",
        "-cvs",
        "-svn",
        "-bzr",
        "-darcs",
        "-always",
        "-hg",
        "-fossil",
    ],
    no_warn: GlobSet {
        len: 0,
        strats: [],
    },
    no_warn_builder: GlobSetBuilder {
        pats: [],
    },
    install_debug: false,
    upgrade_menu: false,
    makepkg_conf: None,
    pacman_conf: None,
    repos: None,
    chroot_dir: "/var/lib/aurbuild/x86_64",
    chroot: false,
    install: false,
    uninstall: false,
    sysupgrade: false,
    refresh: true,
    quiet: false,
    list: false,
    delete: 0,
    no_install: false,
    env: [],
    db_path: None,
    root: None,
    verbose: false,
    ask: 0,
    arch: None,
    ignore: [],
    ignore_group: [],
    ignore_devel_source: [],
    ignore_devel: GlobSet {
        len: 0,
        strats: [],
    },
    ignore_devel_builder: GlobSetBuilder {
        pats: [],
    },
    assume_installed: [],
    pkgbuild_repos: PkgbuildRepos {
        fetch: Fetch {
            clone_dir: "/home/ralju/.cache/paru/clone/repo",
            diff_dir: "/home/ralju/.cache/paru/diff/repo",
            git: "git",
            git_flags: [],
            aur_url: Url {
                scheme: "https",
                cannot_be_a_base: false,
                username: "",
                password: None,
                host: Some(
                    Domain(
                        "aur.archlinux.org",
                    ),
                ),
                port: None,
                path: "/",
                query: None,
                fragment: None,
            },
        },
        repos: [],
    },
}
debug: <paru::exec> running command: "sudo" "pacman" "--sync" "-y" "--"
[sudo] password for ralju: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
debug: <paru::resolver> AUR depends flags: Flags(TARGET_PROVIDES | MISSING_PROVIDES | CALCULATE_MAKE | CHECK_DEPENDS | REPO)
debug: <paru::exec> running command: "sudo" "pacman" "--sync" "-y" "--"
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date

@romanstingler
Copy link

@refola is this still a thing, can't reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants