kaptan, pds and package-manager
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import pythonmodules
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import kde4
|
||||
|
||||
def install():
|
||||
pythonmodules.install()
|
||||
|
||||
# Copy Notification Rc file for Kde 4
|
||||
pisitools.insinto("%s/package-manager/" % kde4.appsdir, "src/package-manager.notifyrc")
|
||||
|
||||
for lang in ('de','en','es','fr','nl','sv','tr'):
|
||||
pisitools.insinto("%s/html/%s/package-manager/" % (kde4.docdir, lang),
|
||||
"help/%s/main_help.html" % lang, "index.html")
|
||||
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
diff -Nuar package-manager-4.0.0.orig/src/packagemodel.py package-manager-4.0.0/src/packagemodel.py
|
||||
--- package-manager-4.0.0.orig/src/packagemodel.py 2013-12-24 23:35:17.000000000 +0200
|
||||
+++ package-manager-4.0.0/src/packagemodel.py 2014-01-12 16:28:56.483228983 +0200
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
if config.USE_APPINFO:
|
||||
self.appinfo = AppInfoClient()
|
||||
- self.appinfo.setServer('http://appinfo.pardus.org.tr')
|
||||
+ self.appinfo.setServer('http://appinfo.pisilinux.org')
|
||||
if not self.appinfo.initializeLocalDB()[0]:
|
||||
self.appinfo.checkOutDB()
|
||||
|
||||
diff -Nuar package-manager-4.0.0.orig/src/pmutils.py package-manager-4.0.0/src/pmutils.py
|
||||
--- package-manager-4.0.0.orig/src/pmutils.py 2013-12-24 23:35:16.000000000 +0200
|
||||
+++ package-manager-4.0.0/src/pmutils.py 2014-01-12 16:29:17.453228944 +0200
|
||||
@@ -156,7 +156,7 @@
|
||||
QNetworkProxy.setApplicationProxy(QNetworkProxy())
|
||||
|
||||
def network_available():
|
||||
- return pisi.fetcher.Fetcher('http://appinfo.pardus.org.tr').test()
|
||||
+ return pisi.fetcher.Fetcher('http://appinfo.pisilinux.org').test()
|
||||
|
||||
def parse_proxy(line):
|
||||
settings = {'domain':None,'user':None,'pass':None,'host':None,'port':None}
|
||||
diff -Nuar package-manager-4.0.0.orig/src/statemanager.py package-manager-4.0.0/src/statemanager.py
|
||||
--- package-manager-4.0.0.orig/src/statemanager.py 2013-12-24 23:35:17.000000000 +0200
|
||||
+++ package-manager-4.0.0/src/statemanager.py 2014-01-12 16:29:49.533228560 +0200
|
||||
@@ -158,7 +158,7 @@
|
||||
if config.USE_APPINFO:
|
||||
if network_available():
|
||||
if not AppInfoClient().checkOutDB()[0]:
|
||||
- AppInfoClient().setServer('http://appinfo.pardus.org.tr')
|
||||
+ AppInfoClient().setServer('http://appinfo.pisilinux.org')
|
||||
AppInfoClient().checkOutDB()
|
||||
|
||||
return True
|
||||
diff -Nuar package-manager-4.0.0.orig/src/webdialog.py package-manager-4.0.0/src/webdialog.py
|
||||
--- package-manager-4.0.0.orig/src/webdialog.py 2013-12-24 23:35:17.000000000 +0200
|
||||
+++ package-manager-4.0.0/src/webdialog.py 2014-01-12 16:30:21.433228258 +0200
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
self.registerFunction(IN, lambda: parent.statusBar().hide())
|
||||
self.registerFunction(FINISHED, lambda: parent.statusBar().setVisible(not self.isVisible()))
|
||||
- self._as = 'http://appinfo.pardus.org.tr'
|
||||
+ self._as = 'http://appinfo.pisilinux.org'
|
||||
self.cancelButton.clicked.connect(self._hide)
|
||||
self.cancelButton.setIcon(KIcon("cancel"))
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
Index: package-manager-3.0.3/src/pmutils.py
|
||||
===================================================================
|
||||
--- package-manager-3.0.3.orig/src/pmutils.py
|
||||
+++ package-manager-3.0.3/src/pmutils.py
|
||||
@@ -114,7 +114,7 @@ class PM:
|
||||
|
||||
def get_real_paths(packages):
|
||||
# If packages are not from repo or remote, find their absolute paths
|
||||
- return map(lambda x: x if not x.endswith('pisi') or '://' in x else os.path.abspath(x), packages)
|
||||
+ return map(lambda x: x if not x.endswith('.pisi') or '://' in x else os.path.abspath(x), packages)
|
||||
|
||||
def isAllLocal(packages):
|
||||
return all(map(lambda x: x.endswith('.pisi') and not '://' in x, packages))
|
||||
@@ -0,0 +1,37 @@
|
||||
diff -Nuar package-manager-4.0.0-OSmanOS/src/summarydialog.py package-manager-4.0.0/src/summarydialog.py
|
||||
--- package-manager-4.0.0-OSmanOS/src/summarydialog.py 2013-12-24 23:35:17.000000000 +0200
|
||||
+++ package-manager-4.0.0/src/summarydialog.py 2014-12-07 19:07:40.849356751 +0200
|
||||
@@ -80,6 +80,19 @@
|
||||
for desktopFile in desktopFiles:
|
||||
self.addApplication(desktopFile)
|
||||
|
||||
+
|
||||
+ def checkIcon(self, iconFileName):
|
||||
+ extensions = ['png', 'jpg','jpeg', 'svg']
|
||||
+ pixmapsDir = '/usr/share/pixmaps/'
|
||||
+ if os.path.isfile(iconFileName) == True:
|
||||
+ return iconFileName
|
||||
+ else:
|
||||
+ for ext in extensions:
|
||||
+ fname = '%s%s.%s' % (pixmapsDir, iconFileName, ext)
|
||||
+ if os.path.isfile(fname):
|
||||
+ return fname
|
||||
+
|
||||
+
|
||||
def addApplication(self, desktopFile):
|
||||
parser = desktopparser.DesktopParser()
|
||||
parser.read("/%s" % str(desktopFile))
|
||||
@@ -89,7 +102,7 @@
|
||||
if nodisplay == "true" or terminal == "true":
|
||||
return
|
||||
|
||||
- icon = parser.safe_get_locale('Desktop Entry', 'Icon', None)
|
||||
+ icon = self.checkIcon(parser.safe_get_locale('Desktop Entry', 'Icon', None))
|
||||
command = parser.safe_get_locale('Desktop Entry', 'Exec', None)
|
||||
if not command:
|
||||
return
|
||||
@@ -117,4 +130,3 @@
|
||||
def showSummary(self):
|
||||
if self.hasApplication():
|
||||
self.show()
|
||||
-
|
||||
@@ -0,0 +1,35 @@
|
||||
--- ui/webdialog.ui.old 2014-02-13 00:22:36.000000000 +0400
|
||||
+++ ui/webdialog.ui 2014-02-13 00:10:47.000000000 +0400
|
||||
@@ -232,15 +232,21 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="cancelButton">
|
||||
+ <property name="sizePolicy">
|
||||
+ <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||
+ <horstretch>0</horstretch>
|
||||
+ <verstretch>0</verstretch>
|
||||
+ </sizepolicy>
|
||||
+ </property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
- <width>32</width>
|
||||
+ <width>36</width>
|
||||
<height>26</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
- <width>24</width>
|
||||
+ <width>36</width>
|
||||
<height>26</height>
|
||||
</size>
|
||||
</property>
|
||||
@@ -256,7 +262,7 @@
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
- <string notr="true"/>
|
||||
+ <string notr="true">X</string>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>true</bool>
|
||||
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>package-manager</Name>
|
||||
<Homepage>http://www.pisilinux.org</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>app:gui</IsA>
|
||||
<Summary>PiSi graphical user interface</Summary>
|
||||
<Description>Package Manager is PiSi's easy-to-use graphical user interface.</Description>
|
||||
<Archive sha1sum="c46fdf5835c9abf56f3af82d2e960ac7fe51382a" type="targz">https://github.com/PisiLinuxNew/package-manager/archive/package-manager.4.1.1.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>docutils</Dependency>
|
||||
<Dependency versionFrom="5.5.1">python-qt5-devel</Dependency>
|
||||
<Dependency>python-sip</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>package-manager</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>pisi</Dependency>
|
||||
<Dependency versionFrom="5.5.1">python-qt5</Dependency>
|
||||
<!-- <Dependency>python-appinfo</Dependency> -->
|
||||
<Dependency>python-sip</Dependency>
|
||||
<Dependency>pisilinux-desktop-services</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/share</Path>
|
||||
<Path fileType="localedata">/usr/share/locale</Path>
|
||||
<Path fileType="data">/usr/share/applications</Path>
|
||||
<Path fileType="data">/usr/share/icons</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2016-04-15</Date>
|
||||
<Version>4.1.1</Version>
|
||||
<Comment>ported pyqt5</Comment>
|
||||
<Name>Ayhan Yalçınsoy</Name>
|
||||
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>package-manager</Name>
|
||||
<Summary xml:lang="tr">PiSi kullanıcı grafik arayüzü</Summary>
|
||||
<Description xml:lang="tr">PiSi paket yöneticisine ait paket kurma, kaldırma ve güncelleme gibi işlerin grafik ortamda yapılabilmesini sağlayan PiSi grafik arayüzü.</Description>
|
||||
<Description xml:lang="fr">PiSi est une interface graphique permettant d'effectuer l'installation, la suppression et la mise à jour de paquet PiSi depuis un environnement graphique.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user