pijul_org / pijul

Fixing a wrong unknown patch detection that used to cause missing context conflicts

By pmeunier on April 4, 2018
This patch is not signed.
8UzQgur4CV2oW2WLNfGQKLNM6kTtPGNVhXjcb38Fx9G6kxm7geXs5fc9JDMKTuD3Ya22DDYyVCt5ifsoMiE4x7P8
This patch is in the following branches:
latest
master
testing
In file libpijul/src/apply






















                    .filter(|&(k, v)| {
                        let is_unknown = v.introduced_by != patch_id && {
                            let ext = self.external_hash(v.introduced_by).to_owned();
                            !dependencies.contains(&ext)
                        } && {
                            let ext = self.external_hash(v.dest.patch).to_owned();
                            !dependencies.contains(&ext)
                        } && {
                            let ext = self.external_hash(k.patch).to_owned();
                            !dependencies.contains(&ext)
                        };
                    .filter(|&(k, v)| {
                        let is_unknown = v.introduced_by != patch_id && {
                            let ext = self.external_hash(v.introduced_by).to_owned();
                            !dependencies.contains(&ext)
                        } && {
                            let ext = self.external_hash(v.dest.patch).to_owned();
                            !dependencies.contains(&ext)
                        } && {
                            let ext = self.external_hash(k.patch).to_owned();
                            !dependencies.contains(&ext)
                        };