~ubuntu-branches/ubuntu/vivid/debtags/vivid

« back to all changes in this revision

Viewing changes to printer.h

  • Committer: Package Import Robot
  • Author(s): Enrico Zini, Michael Vogt, Enrico Zini
  • Date: 2013-10-25 12:41:25 UTC
  • Revision ID: package-import@ubuntu.com-20131025124125-ytl4xarlmdyiuzjb
Tags: 1.12
[ Michael Vogt ]
* Install files in python3-debtagshw

[ Enrico Zini ]
* Build with new wibble

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
                                if (!ver.isValid())
177
177
                                        return *this;
178
178
                                ept::apt::PackageRecord record(apt.rawRecord(ver));
 
179
                                bool tags_found = false;
179
180
                                for (size_t i = 0; i < record.size(); ++i)
180
181
                                {
181
182
                                        if (record.name(i) == "Tag")
182
183
                                        {
 
184
                                                tags_found = true;
183
185
                                                std::set<Tag> tags = debtags.getTagsOfItem(pkg);
184
186
                                                if (!tags.empty())
185
187
                                                {
191
193
                                                std::cout << record.field(i);
192
194
                                        }
193
195
                                }
 
196
                                if (!tags_found)
 
197
                                {
 
198
                                        std::set<Tag> tags = debtags.getTagsOfItem(pkg);
 
199
                                        if (!tags.empty())
 
200
                                        {
 
201
                                                std::cout << "Tag: ";
 
202
                                                printTags(tags);
 
203
                                                std::cout << std::endl;
 
204
                                        }
 
205
                                }
194
206
                                std::cout << std::endl;
195
207
                                break;
196
208
                        }