> especially things like:
>
> -                    if thisrepo_age > repo_config_age:
> -                        repo_config_age = thisrepo_age
> +                    if thisrepo_age < repo_config_age:
> +                        thisrepo_age = repo_config_age

Previously when we were concatenating all the files, we would assign
either the age of yum.conf or the greatest value of os.stat(repofn)[8]
among all the .repo files, depending on which one is greater, to
thisrepo.repo_config_age.

We would do that using:
-                    if thisrepo_age > repo_config_age:
-                        repo_config_age = thisrepo_age
and finally do:
this.repo.repo_config_age = repo_config_change

Now that we treat every .repo file individually it is difficult to
follow the above scheme, if we do not introduce a separate for loop as
was present before. So I decided to assign either the age of yum.conf
or os.stat(repofn)[8], depending on which one is greater, to
this.repo.repo_config_age.

To do that I could not overwrite repo_config_age. So I changed the
comparison operator and overwrote thisrepo_age and did:
this.repo_config_age = thisrepo_age

I am sorry if I misunderstood the use of 'age's with respect to the
yum.conf and .repo files.

Happy hacking,
Debarshi
-- 
GPG key ID: 63D4A5A7
Key server: pgp.mit.edu
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to