60 lines
2.5 KiB
Diff
60 lines
2.5 KiB
Diff
|
diff -Nru PackageKit-0.8.7.orig/backends/smart/smartBackend.py PackageKit-0.8.7/backends/smart/smartBackend.py
|
||
|
--- PackageKit-0.8.7.orig/backends/smart/smartBackend.py 2013-03-06 15:22:47.965497048 +0100
|
||
|
+++ PackageKit-0.8.7/backends/smart/smartBackend.py 2013-03-06 19:34:16.385058826 +0100
|
||
|
@@ -172,9 +172,6 @@
|
||
|
|
||
|
@needs_cache
|
||
|
def install_packages(self, transaction_flags, packageids):
|
||
|
- if TRANSACTION_FLAG_ONLY_TRUSTED in transaction_flags:
|
||
|
- self.error(ERROR_MISSING_GPG_SIGNATURE, "Trusted packages not available.")
|
||
|
- return
|
||
|
packages = []
|
||
|
for packageid in packageids:
|
||
|
ratio, results, suggestions = self._search_packageid(packageid)
|
||
|
@@ -211,9 +208,6 @@
|
||
|
|
||
|
@needs_cache
|
||
|
def install_files(self, transaction_flags, paths):
|
||
|
- if TRANSACTION_FLAG_ONLY_TRUSTED in transaction_flags:
|
||
|
- self.error(ERROR_MISSING_GPG_SIGNATURE, "Trusted packages not available.")
|
||
|
- return
|
||
|
for path in paths:
|
||
|
self.ctrl.addFileChannel(path)
|
||
|
self.ctrl.reloadChannels()
|
||
|
@@ -280,9 +274,6 @@
|
||
|
|
||
|
@needs_cache
|
||
|
def update_packages(self, transaction_flags, packageids):
|
||
|
- if TRANSACTION_FLAG_ONLY_TRUSTED in transaction_flags:
|
||
|
- self.error(ERROR_MISSING_GPG_SIGNATURE, "Trusted packages not available.")
|
||
|
- return
|
||
|
packages = []
|
||
|
for packageid in packageids:
|
||
|
ratio, results, suggestions = self._search_packageid(packageid)
|
||
|
@@ -292,13 +283,13 @@
|
||
|
'Package %s was not found' % packagestring)
|
||
|
packages.extend(self._process_search_results(results))
|
||
|
|
||
|
- installed = [package for package in packages if package.installed]
|
||
|
+ installed = [package for package in packages]
|
||
|
if len(installed) < 1:
|
||
|
return
|
||
|
trans = smart.transaction.Transaction(self.ctrl.getCache(),
|
||
|
smart.transaction.PolicyUpgrade)
|
||
|
for package in installed:
|
||
|
- trans.enqueue(package, smart.transaction.UPGRADE)
|
||
|
+ trans.enqueue(package, smart.transaction.INSTALL)
|
||
|
|
||
|
self.allow_cancel(False)
|
||
|
self.status(STATUS_DEP_RESOLVE)
|
||
|
@@ -334,9 +325,6 @@
|
||
|
|
||
|
@needs_cache
|
||
|
def update_system(self, transaction_flags):
|
||
|
- if TRANSACTION_FLAG_ONLY_TRUSTED in transaction_flags:
|
||
|
- self.error(ERROR_MISSING_GPG_SIGNATURE, "Trusted packages not available.")
|
||
|
- return
|
||
|
self.status(STATUS_INFO)
|
||
|
cache = self.ctrl.getCache()
|
||
|
|