aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-17 16:00:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-17 16:00:01 +0200
commit39b99b22be9b0a2f5c6081289d8c57572c574732 (patch)
treebd2148698ae1139a824e1aa6139eb71883dae700
parentedaeda7122abd77fcf97b57b45f2e633d66d711f (diff)
Adjust to path::extension() change
-rw-r--r--bpkg/archive.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/bpkg/archive.cxx b/bpkg/archive.cxx
index ee3feab..96ba950 100644
--- a/bpkg/archive.cxx
+++ b/bpkg/archive.cxx
@@ -21,11 +21,8 @@ namespace bpkg
// level extension is .tar, strip that as well (e.g., .tar.bz2).
//
path d (a.leaf ().base ());
- if (const char* e = d.extension ())
- {
- if (e == string ("tar"))
- d = d.base ();
- }
+ if (d.extension () == "tar")
+ d = d.base ();
return path_cast<dir_path> (d);
}