On 05/16/2015 05:25 PM, buhorojo wrote:
OK. So If al locks a package. What locks a repository?
It depends what you mean by "locks". In one sense making the .repo file impermiable (aka undeletabnlle) is one kind of lock :-) BSD has the 'no-unlink' file property and also 'immutable' as both a file and a directory setting. As far as I know Linux only has 'immutable' for files, RTFM CHATTR <quote> A file with the 'i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file </quote> which seems to roll both into the one function. On the other hand, if by 'lock' you mean 'no furhter action, no changes resulting from this repository', once again RTFM for zypper under "Repository Management" <quote> modifyrepo (mr) <options> <alias|name|#|URI> ... modifyrepo (mr) <options> <--all|--remote|--local|--medium-type> Modify properties of repositories specified by alias, name, number, or URI or one of the aggregate options. </quote> That's "zypper mr ..." not "zypper -mr ..." <quote> -d, --disable Disable the repository. </quote> In this sense, disable means 'lock out of use'. So, what do you mean when you speak of "lock"? -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org