Page 1 of 1

parameter "Conflicts"

Published: May 24, 2016 - 2:53 PM
by gaelds
Good morning,
I created a package that configures non-domain PCs to use our WSUS server. I don't want PCs with the "dst-freeze" package to install it because they are frozen using DeepFreeze or TimeFreeze. I tried adding dst-freeze to the "Conflicts" section of the control file, but it doesn't seem to work. It's still possible to install the wsus package on these PCs.

Code: Select all

package      : dst-ClientWsus
version      : 1.0.0-1
architecture : all
section      : base
priority     : optional
maintainer   : 
description  : Forcer MAJ Windows par le serveur Wsus interne
depends      : 
conflicts    : dst-freeze
sources      : 

Re: "Conflicts" parameter

Published: May 24, 2016 - 4:05 PM
by sfonteneau
conflicts allows you to uninstall a package before starting the installation of the new package :roll:

In your case, the setup.py file of your dst-ClientWsus package

You can add something like this:

Code: Select all

def install ():
    reader = WAPT.is_installed('dst-freeze')
    if reader :
        print('si present suite de votre install')
    else:
        print('autre suite de votre install')

Re: "Conflicts" parameter

Published: May 25, 2016 - 09:44
by gaelds
Thanks Simon! I'll try that.

Re: "Conflicts" parameter

Published: May 31, 2016 - 08:21
by gaelds
It works with your code, thank you!