This commit is contained in:
aydemir
2016-07-09 15:47:32 +03:00
parent 42a433c390
commit bf76fe5e4e
3 changed files with 51 additions and 6 deletions
+37
View File
@@ -0,0 +1,37 @@
diff -Nuar a/pisi/cli/fetch.py b/pisi/cli/fetch.py
--- a/pisi/cli/fetch.py 2011-05-26 20:17:29.000000000 +0300
+++ b/pisi/cli/fetch.py 2016-06-14 22:39:14.000000000 +0300
@@ -20,6 +20,7 @@
import pisi.cli.command as command
import pisi.context as ctx
import pisi.api
+import pisi
class Fetch(command.Command):
__doc__ = _("""Fetch a package
@@ -45,12 +46,24 @@
def add_options(self, group):
group.add_option("-o", "--output-dir", action="store", default=os.path.curdir,
help=_("Output directory for the fetched packages"))
+ group.add_option("--runtime-deps", action="store_true", default=None,
+ help=_("Bağımlılıkları ile indirme açıklaması."))
def run(self):
+ packages = pisi.db.packagedb.PackageDB()
self.init(database = False, write = False)
if not self.args:
self.help()
return
+
+ full_packages = []
+
+ for pisi_package in self.args:
+ package = packages.get_package(pisi_package)
+ full_packages.append(pisi_package)
+ if ctx.config.options.runtime_deps:
+ for dep in package.runtimeDependencies():
+ full_packages.append(dep.name())
- pisi.api.fetch(self.args, ctx.config.options.output_dir)
+ pisi.api.fetch(full_packages, ctx.config.options.output_dir)
+5 -5
View File
@@ -46,20 +46,20 @@ def configure(parameters = '', installPrefix = prefix, sourceDir = '..'):
cmaketools.configure("-DDATA_INSTALL_DIR:PATH=%s \
-DINCLUDE_INSTALL_DIR:PATH=%s \
-DCONFIG_INSTALL_DIR:PATH=%s \
-DLIBEXEC_INSTALL_DIR:PATH=%s \
-DKDE_INSTALL_LIBEXECDIR:PATH=%s \
-DLOCALE_INSTALL_DIR:PATH=%s \
-DQML_INSTALL_DIR:PATH=%s \
-DPLUGIN_INSTALL_DIR:PATH=%s \
-DKDE_INSTALL_QMLDIR:PATH=%s \
-DKDE_INSTALL_PLUGINDIR:PATH=%s \
-DECM_MKSPECS_INSTALL_DIR:PATH=%s \
-DPYTHON_EXECUTABLE:PATH=%s \
-DSYSCONF_INSTALL_DIR:PATH=%s \
-DKDE_INSTALL_SYSCONFDIR:PATH=%s \
-DHTML_INSTALL_DIR:PATH=%s \
-DMAN_INSTALL_DIR:PATH=%s \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DLIB_INSTALL_DIR:PATH=%s %s \
-DKDE_INSTALL_LIBDIR:PATH=%s %s \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=%s" % (appsdir, includedir, configdir, libexecdir, localedir, qmldir, plugindir, moduledir, pythondir, sysconfdir, htmldir, mandir, libdir, parameters, prefix), installPrefix, sourceDir)
+9 -1
View File
@@ -34,6 +34,7 @@
<Patch>fix_emul32_flags.patch</Patch>
<Patch level="1">pisi-2.6-pisitools.dopixmaps-add.patch</Patch>
<Patch>emergeup.patch</Patch>
<Patch>fetch.patch</Patch>
</Patches>
</Source>
@@ -86,6 +87,13 @@
</Package>
<History>
<Update release="4">
<Date>2016-07-09</Date>
<Version>2.6</Version>
<Comment>Release Bump</Comment>
<Name>PisiLinux Community</Name>
<Email>admin@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2016-06-07</Date>
<Version>2.6</Version>
@@ -108,4 +116,4 @@
<Email>ertugrulerata@gmail.com</Email>
</Update>
</History>
</PISI>
</PISI>