This commit is contained in:
2020-04-26 20:26:29 -04:00
commit e681715c31
12 changed files with 1059 additions and 0 deletions

24
Program.cs Normal file
View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Data.Common;
namespace nalpm
{
class Program
{
static void Main(string[] args)
{
errno_t err = errno_t.ERR_OK;
using var h = new Handle("/", "/home/luebsj/db");
using var db = h.RegisterSyncDB("jkl-repo", SigLevel.SIG_PACKAGE_OPTIONAL | SigLevel.SIG_USE_DEFAULT);
db.Servers = new List<string> {"http://a.b.c", "http://d.e.f", "http://arch.johnluebs.com/x86_64"};
var a = new string[3];
db.Servers.CopyTo(a, 0);
Console.WriteLine("Hello World! {0} {1} {2}", db.Name, Alpm.Version(),
a[0]);
}
}
}