Skip to content

Commit

Permalink
FS: File description improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Oct 15, 2017
1 parent 1c288c8 commit af73466
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion doomsday/sdk/libcore/src/filesys/file.cpp
Expand Up @@ -159,7 +159,11 @@ String File::description(int verbosity) const
// feed itself (would be redundant).
if (originFeed() && (verbosity >= 2 || !is<DirectoryFeed>(originFeed())))
{
desc += " from " + originFeed()->description();
String const feedDesc = originFeed()->description();
if (!desc.contains(feedDesc)) // A bit of a kludge; don't repeat the feed description.
{
desc += " from " + feedDesc;
}
}

#ifdef DENG2_DEBUG
Expand Down
2 changes: 1 addition & 1 deletion doomsday/sdk/libcore/src/filesys/remotefeed.cpp
Expand Up @@ -105,7 +105,7 @@ String RemoteFeed::repository() const

String RemoteFeed::description() const
{
return String("remote file repository \"%1\" (remote root \"%2\")")
return String("remote repository \"%1%2\"")
.arg(d->repository)
.arg(d->remotePath);
}
Expand Down

0 comments on commit af73466

Please sign in to comment.