5
5
## DP: No description.
8
diff -urNad synaptic-0.56/common/rpackage.cc /tmp/dpep.Ri9fRS/synaptic-0.56/common/rpackage.cc
9
--- synaptic-0.56/common/rpackage.cc 2005-02-18 13:28:43.000000000 +0100
10
+++ /tmp/dpep.Ri9fRS/synaptic-0.56/common/rpackage.cc 2005-02-18 14:39:17.005309176 +0100
12
if(verstr.find(':')!=verstr.npos)
13
verstr=string(verstr, verstr.find(':')+1);
8
diff -urNad bug.153966.452564~/common/rpackage.cc bug.153966.452564/common/rpackage.cc
9
--- bug.153966.452564~/common/rpackage.cc 2010-04-14 00:16:09.000000000 +0200
10
+++ bug.153966.452564/common/rpackage.cc 2010-04-14 00:20:52.000000000 +0200
15
- snprintf(uri,512,"http://packages.debian.org/changelogs/pool/%s/%s/%s/%s_%s/changelog",
16
+ snprintf(uri,512,"http://changelogs.ubuntu.com/changelogs/pool/%s/%s/%s/%s_%s/changelog",
14
//FIXME: get the supportedOrigins from pkgStatus
15
- if(origin() == "Debian") {
16
+ if(origin() == "Ubuntu") {
18
string srcpkg = srcPackage();
21
if(verstr.find(':')!=verstr.npos)
22
verstr=string(verstr, verstr.find(':')+1);
24
- snprintf(uri,512,"http://packages.debian.org/changelogs/pool/%s/%s/%s/%s_%s/changelog",
25
+ snprintf(uri,512,"http://changelogs.ubuntu.com/changelogs/pool/%s/%s/%s/%s_%s/changelog",
17
26
src_section.c_str(),
30
struct stat filestatus;
31
stat(filename.c_str(), &filestatus );
32
if (filestatus.st_size == 0) {
33
- out << "This change is not coming from a source that supports changelogs.\n" << endl;
34
- out << "Failed to fetch the changelog for " << name() << endl;
35
- out << "URI was: " << uri << endl;
36
+ // FIXME: Use supportedOrigins
37
+ if(origin() == "Ubuntu") {
39
+ if(availableVersion() != NULL)
40
+ verstr = availableVersion();
42
+ if(verstr.find(':')!=verstr.npos)
43
+ verstr=string(verstr, verstr.find(':')+1);
44
+ out << "The list of changes is not available yet.\n" << endl;
45
+ out << "Please use http://launchpad.net/ubuntu/+source/"<< srcPackage() <<
46
+ "/" << verstr << "/+changelog" << endl;
47
+ out << "until the changes become available or try again later." << endl;
49
+ out << "This change is not coming from a source that supports changelogs.\n" << endl;
50
+ out << "Failed to fetch the changelog for " << name() << endl;
51
+ out << "URI was: " << uri << endl;
56
diff -urNad bug.153966.452564~/common/rpackagestatus.cc bug.153966.452564/common/rpackagestatus.cc
57
--- bug.153966.452564~/common/rpackagestatus.cc 2010-04-13 23:31:39.000000000 +0200
58
+++ bug.153966.452564/common/rpackagestatus.cc 2010-04-14 00:18:59.000000000 +0200
21
60
markUnsupported = true;
23
62
// read supported labels
26
65
stringstream sst1(labels);
27
66
while(!sst1.eof()) {
71
// read supported origins
72
- origin = _config->Find("Synaptic::supported-origins", "Debian");
73
+ origin = _config->Find("Synaptic::supported-origins", "Ubuntu");
74
stringstream sst2(origin);
32
80
// read supported components
33
81
- components = _config->Find("Synaptic::supported-components", "main updates/main");
34
82
+ components = _config->Find("Synaptic::supported-components", "main updates/main restricted");
35
stringstream sst2(components);
83
stringstream sst3(components);