updating minor spec break in repoclone for arch, other small notes/fixes

This commit is contained in:
brent s
2018-11-08 19:04:11 -05:00
parent b17646ea4f
commit 69d13d5c97
3 changed files with 13 additions and 4 deletions

View File

@@ -5,6 +5,8 @@
# we import it for various prep stuff anyways.
# TODO: change loglevel of borg itself in subprocess to match the argparse?
# --debug, --info (same as -v/--verbose), --warning, --error, --critical
# TODO: switch to XML-based cfg instead of JSON. add automatic converter.
# TODO: modify config to add repo to cfg for init? or add new operation, "add"
import argparse
import configparser

View File

@@ -13,6 +13,8 @@ import lxml.etree
# Serialize BSD mtree spec files into XML.
# On arch, BSD mtree is ported in the AUR as nmtree.
# TODO: use bitwise operations to convert octal modes back and forth. ex. at https://stackoverflow.com/a/1746850
class MtreeXML(object):
def __init__(self, spec):
# spec is a string or bytes