Permalink
Browse files
trivial: Fix compiler warning
- Loading branch information...
Showing
with
11 additions
and
10 deletions.
-
+3
−2
source/backends/ubuntu/ubupkgindex.d
-
+8
−8
source/zarchive.d
|
|
@@ -20,12 +20,13 @@ |
|
|
|
|
|
module backends.ubuntu.ubupkgindex;
|
|
|
|
|
|
+import std.container : Array, make;
|
|
|
+import std.array : appender;
|
|
|
+
|
|
|
import backends.debian;
|
|
|
import backends.interfaces;
|
|
|
import backends.ubuntu.ubupkg;
|
|
|
|
|
|
-import std.container : Array, make;
|
|
|
-
|
|
|
class UbuntuPackageIndex : DebianPackageIndex
|
|
|
{
|
|
|
|
|
|
|
|
|
@@ -33,14 +33,6 @@ version (GNU) |
|
|
else
|
|
|
import std.concurrency : Generator, yield;
|
|
|
|
|
|
-version (unittest) {
|
|
|
- version (GNU) {
|
|
|
- extern(C) char *mkdtemp (char *) nothrow @nogc;
|
|
|
- } else {
|
|
|
- import core.sys.posix.stdlib : mkdtemp;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
import bindings.libarchive;
|
|
|
|
|
|
private immutable DEFAULT_BLOCK_SIZE = 65536;
|
|
|
@@ -577,6 +569,14 @@ public: |
|
|
|
|
|
}
|
|
|
|
|
|
+version (unittest) {
|
|
|
+ version (GNU) {
|
|
|
+ extern(C) char *mkdtemp (char *) nothrow @nogc;
|
|
|
+ } else {
|
|
|
+ import core.sys.posix.stdlib : mkdtemp;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
unittest
|
|
|
{
|
|
|
writeln ("TEST: ", "Compressed empty file");
|
|
|
|
0 comments on commit
12ca9be