diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2024-08-22 16:10:58 +0200 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2024-08-22 16:11:38 +0200 |
| commit | 67070389f3752f6f23d1fb0c06bd963464aa8bca (patch) | |
| tree | 02e0e09f6d5a6e1132dab89b154418c3f5be7a7b /apt-pkg/policy.cc | |
| parent | accc2f202eabfe472ceae37d9e4f4431a8cc298f (diff) | |
Implement 'Pin: source-version <foo>'
As wondered about by Paride some minutes ago.
Diffstat (limited to 'apt-pkg/policy.cc')
| -rw-r--r-- | apt-pkg/policy.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index b1d8e7223..5d361af1a 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -452,6 +452,8 @@ bool ReadPinFile(pkgPolicy &Plcy,string File) pkgVersionMatch::MatchType Type; if (stringcasecmp(Start,Word,"version") == 0 && Name.empty() == false) Type = pkgVersionMatch::Version; + else if (stringcasecmp(Start,Word,"source-version") == 0 && Name.empty() == false) + Type = pkgVersionMatch::SourceVersion; else if (stringcasecmp(Start,Word,"release") == 0) Type = pkgVersionMatch::Release; else if (stringcasecmp(Start,Word,"origin") == 0) |
