summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Nicoletti <dantti12@gmail.com>2012-04-22 10:49:19 -0300
committerDaniel Nicoletti <dantti12@gmail.com>2012-04-22 10:49:19 -0300
commit8440e54ff81f2fc22df5615bf2db16c8485d2b44 (patch)
tree6c795c7a61a022f72778c001ad41a624dd87a711
parent1a1852173d376ede81f2d873e53342232a32ce9c (diff)
aptcc: Fix possible crash as PkBackend was not inited
-rw-r--r--backends/aptcc/AptCacheFile.cpp3
-rw-r--r--backends/aptcc/Makefile.am2
2 files changed, 4 insertions, 1 deletions
diff --git a/backends/aptcc/AptCacheFile.cpp b/backends/aptcc/AptCacheFile.cpp
index c4d5877c6..ddba16a58 100644
--- a/backends/aptcc/AptCacheFile.cpp
+++ b/backends/aptcc/AptCacheFile.cpp
@@ -26,7 +26,8 @@
#include <cstdio>
AptCacheFile::AptCacheFile(PkBackend *backend) :
- m_packageRecords(0)
+ m_packageRecords(0),
+ m_backend(backend)
{
}
diff --git a/backends/aptcc/Makefile.am b/backends/aptcc/Makefile.am
index b510b05f0..e84a0d4e7 100644
--- a/backends/aptcc/Makefile.am
+++ b/backends/aptcc/Makefile.am
@@ -12,6 +12,7 @@ libpk_backend_aptcc_la_SOURCES = pkg_acqfile.cpp \
apt-messages.cpp \
apt-utils.cpp \
apt-sourceslist.cpp \
+ OpPackageKitProgress.cpp \
AptCacheFile.cpp \
apt-intf.cpp \
pk-backend-aptcc.cpp
@@ -32,6 +33,7 @@ EXTRA_DIST = 20packagekit \
deb-file.h \
apt-messages.h \
acqpkitstatus.h \
+ OpPackageKitProgress.h \
AptCacheFile.h \
pkg_acqfile.h