Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cruft-ng
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jochen Sprickerhof
cruft-ng
Commits
3a8760e5
Commit
3a8760e5
authored
2 years ago
by
Alexandre Detiste
Browse files
Options
Downloads
Patches
Plain Diff
remove TODO statements
parent
21d1bc31
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dpkg_popen.cc
+0
-4
0 additions, 4 deletions
dpkg_popen.cc
with
0 additions
and
4 deletions
dpkg_popen.cc
+
0
−
4
View file @
3a8760e5
...
...
@@ -11,7 +11,6 @@ int read_dpkg_header(vector<string>& packages)
{
bool
debug
=
getenv
(
"DEBUG"
)
!=
NULL
;
// TODO: read DPKG database using C library instead of using dpkg-query
if
(
debug
)
cerr
<<
"DPKG DATA
\n
"
;
FILE
*
fp
;
if
((
fp
=
popen
(
"dpkg-query --show --showformat '${binary:Package}
\n
'"
,
"r"
))
==
NULL
)
return
1
;
...
...
@@ -93,8 +92,6 @@ int read_dpkg_items(vector<string>& dpkg)
vector
<
Diversion
>
diversions
;
read_diversions
(
diversions
);
// TODO: read DPKG database instead of using dpkg-query
// cat /var/lib/dpkg/info/ *.list |sort -u
string
command
=
"dpkg-query --listfiles $(dpkg-query --show --showformat '${binary:Package} ')|sort -u"
;
const
int
SIZEBUF
=
200
;
char
buf
[
SIZEBUF
];
...
...
@@ -105,7 +102,6 @@ int read_dpkg_items(vector<string>& dpkg)
string
filename
=
buf
;
if
(
filename
.
substr
(
0
,
1
)
!=
"/"
)
continue
;
filename
=
filename
.
substr
(
0
,
filename
.
size
()
-
1
);
// TODO: ignore ${prunepaths} here also
vector
<
Diversion
>::
iterator
it
=
diversions
.
begin
();
struct
stat
stat_buffer
;
for
(;
it
!=
diversions
.
end
();
it
++
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment