Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In #728, we started querying enabled repos using get_n_solvables(). However, there are different kinds of enabled repos, and `dnf_repo_get_enabled()` reflects that through the bitmask it returns: - DNF_REPO_ENABLED_NONE: repo disabled - DNF_REPO_ENABLED_PACKAGES: repo enabled for package installs - DNF_REPO_ENABLED_METADATA: repo enabled for metadata We were treating it as a boolean, though really, we should only print data about repos with ENABLED_PACKAGES on, which are the actual repos libdnf can fetch packages from. Repos with only ENABLED_METADATA on are not fetched by default, and thus will cause SIGSEGV when trying to get_n_solvables(). I ran into this while trying to debug #720 on F25 AH, which has this repo by default: [fedora-cisco-openh264] name=Fedora $releasever openh264 (From Cisco) - $basearch baseurl=https://codecs.fedoraproject.org/openh264/$releasever/$basearch/ enabled=0 enabled_metadata=1 Closes: #736 Approved by: cgwalters
- Loading branch information