checkpoint for real

This commit is contained in:
2020-04-27 12:34:56 -04:00
parent 6ed92261ec
commit c1618deb83
31 changed files with 1429 additions and 626 deletions

View File

@@ -1,24 +1,27 @@
using System;
using System.Collections.Generic;
using System.Data.Common;
using Foodsoft.Alpm;
namespace nalpm
namespace Foodsoft.Alpm
{
class Program
{
static void Main(string[] args)
{
errno_t err = errno_t.ERR_OK;
ErrNo err = ErrNo.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]);
db.Servers = new List<string> {"http://a.b.c", "http://d.e.f", "http://arch.johnluebs.com/x86_64"};
foreach (var a in db.Servers)
{
Console.WriteLine("Hello {0}", a);
}
var b = new string[3];
db.Servers.CopyTo(b, 0);
Console.WriteLine("Hello World! {0} {1} {2}", db.Name, API.Version,
b[0]);
}
}
}