kdenonbeta/kdedebian/kalternatives

Juanjo Alvarez <[email protected]>
Newsgroups gmane.linux.debian.devel.qt-kde,gmane.comp.kde.devel.debian,gmane.comp.kde.debian
Message-ID <[email protected]>
CVS commit by juanjux: 

Added untested Mandrake Linux support (SOMEBODY PLEASE TEST!)

CCMAIL: [email protected], [email protected]


  M +4 -0      Changelog   1.3
  M +12 -2     kalternatives   1.5
  M +1 -1      debian/changelog   1.3


--- kdenonbeta/kdedebian/kalternatives/Changelog  #1.2:1.3
@@ -1,2 +1,6 @@
+0.8 
+[Juanjo]
+* Mandrake support
+
 0.7
 [Juanjo]

--- kdenonbeta/kdedebian/kalternatives/kalternatives  #1.4:1.5
@@ -19,5 +19,5 @@
 #   Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-__version__ =  "0.7"
+__version__ =  "0.8"
 
 import sys
@@ -433,5 +433,15 @@
         global app
         self.setCentralWidget(QWidget(self, "pok"))
-        self.mgr = AltFilesManager()
+        if os.path.exists("/var/lib/dpkg/alternatives"):
+            #Debian
+            self.mgr = AltFilesManager()
+        elif os.path.exists("/var/lib/rpm/alternatives"):
+            #Mandrake
+            self.mgr = AltFilesManager("/var/lib/rpm/alternatives")
+        else:
+            # Ups?
+            QMessageBox.critical(self, "Critical Error", \
+            "Kalternatives only work on Debian based or Mandrake systems\n\n","&Exit")
+            sys.exit(0)
 
         self.iw = ItemsWidget(self.centralWidget())

--- kdenonbeta/kdedebian/kalternatives/debian/changelog  #1.2:1.3
@@ -1,3 +1,3 @@
-kalternatives (0.7-1) unstable; urgency=low
+kalternatives (0.8-1) unstable; urgency=low
 
   * Initial release.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.