Depot differences

Beiträge: 15
Registriert: 24 Aug 2017, 12:32

Depot differences

Beitragvon dorian.borovina » 05 Feb 2018, 17:53

Dear devs,

I would like to thank you sincerely for your amazing work. Keep on rocking it!

One idea I have, nothing much, but makes man happy. :)

When you execute

Code: Alles auswählen

opsi-package-manager -D -d ALL

in order to see the difference between the depots, and if there is a PERFECT match, which means that all the depots are in sync,

command is returning nothing.

Like, really nothing. Gar nichts. :D

It would be nice if it could return " Depots are in sync" or something like that, just to let us know.

Thank you! :)

Beiträge: 2564
Registriert: 04 Apr 2013, 12:15

Re: Depot differences

Beitragvon n.wenselowski » 07 Feb 2018, 14:17


thanks for the kind words!

I openend an internal ticket for this as this is probably easy to implement.
If you want to implement this by yourself I'd happily give help!

Kind regards

Kein Support per DM!
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.

Beiträge: 15
Registriert: 24 Aug 2017, 12:32

Re: Depot differences

Beitragvon dorian.borovina » 20 Feb 2018, 09:23

Hi Niko,

I'm not a software dev, and my python skills are not something I would put on my CV.
But, let's take a look. :)
I did some research, and I belive I'm on the right track.

In the opsi-package-manager script, I've found this.

Code: Alles auswählen

if differs:
                                for line in lines:
                                        print line.encode(self.encoding, 'replace')
                                print ""

There is no else following this, so I would like to add it.

Code: Alles auswählen

            print "There are no difference between the depots"

It does the job, but it looks like that it goes through the every line and prints the output for each one of it.
Can we summarise it somehow? :D

Thank You for your help!

Zurück zu „Comments, suggestions, wish list“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast