Skip to content

Commit e54399f

Browse files
committedMay 25, 2021
rebase
2 parents a1fc606 + bdbca96 commit e54399f

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed
 

‎.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
# Autosave files
44
*~
5-
.vs/
5+
.vs/
6+
.azure/
7+
8+
*.sqlite3
69

710
# build
811
[Oo]bj/

‎Data/PackageAssemblyXmlDocs.cs

-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public PackageAssemblyXmlLanguageDocs (Entry entry)
7979
if (pathParts.Length == 4) {
8080
LanguageCode = pathParts[2];
8181
}
82-
// TODO: verify this is legit
8382
AssemblyName = Path.GetFileNameWithoutExtension (pathParts[pathParts.Length - 1]);
8483
}
8584
catch (Exception ex) {

‎Data/PackageData.cs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class Entry
1717
{
1818
public PackageData Package { get; set; }
1919
public string FullName { get; set; }
20+
public string Name { get; set; }
2021
public int Mode { get; set; }
2122
public int CompressedSize { get; set; }
2223
public int ExpandedSize { get; set; }
@@ -268,6 +269,7 @@ async Task<List<Entry>> ReadEntriesAsync (HttpClient client, string file)
268269
var entry = new Entry {
269270
Package = this,
270271
FullName = name,
272+
Name = Path.GetFileName(name),
271273
CompressedSize = compSize,
272274
ExpandedSize = expSize,
273275
Mode = compressionMethod,

‎Data/PackageFile.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace FuGetGallery
44
public class PackageFile
55
{
66
public Entry ArchiveEntry { get; }
7-
public string FileName => ArchiveEntry?.FullName;
7+
public string FileName => ArchiveEntry?.Name;
88
public long SizeInBytes => ArchiveEntry != null ? ArchiveEntry.Length : 0;
99

1010
public PackageFile (Entry entry)

0 commit comments

Comments
 (0)
Please sign in to comment.