diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-15 11:25:01 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-15 11:25:01 -0600 |
commit | 4eeac77b1d53944af14def681a8763a473b60f9c (patch) | |
tree | d9532acf83830d9bd1005de3b4af310383f8350a /makechrootpkg.in | |
parent | a8c95177c7f9bab8cb7e697c6e925b2fb1c5d342 (diff) | |
parent | abba9f07a6d703cd97fc2d2bbd397072d5bf796d (diff) | |
download | devtools32-4eeac77b1d53944af14def681a8763a473b60f9c.tar.xz |
Merge commit 'abba'
Conflicts:
makechrootpkg.in
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r-- | makechrootpkg.in | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index b68dc0a..c55cab4 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -17,7 +17,6 @@ repack=false update_first=false clean_first=false install_pkg= -add_to_db=false run_namcap=false temp_chroot=false chrootdir= @@ -52,7 +51,6 @@ usage() { echo '-u Update the working copy of the chroot before building' echo ' This is useful for rebuilds without dirtying the pristine' echo ' chroot' - echo '-d Add the package to a local db at /repo after building' echo '-r <dir> The chroot dir to use' echo '-I <pkg> Install a package into the working copy of the chroot' echo '-l <copy> The directory to use as the working copy of the chroot' @@ -63,12 +61,11 @@ usage() { exit 1 } -while getopts 'hcudr:I:l:nT' arg; do +while getopts 'hcur:I:l:nT' arg; do case "$arg" in h) usage ;; c) clean_first=true ;; u) update_first=true ;; - d) add_to_db=true ;; r) passeddir="$OPTARG" ;; I) install_pkgs+=("$OPTARG") ;; l) copy="$OPTARG" ;; @@ -277,15 +274,7 @@ EOF chmod +x "$copydir/chrootbuild" if arch-nspawn "$copydir" /chrootbuild; then - mkdir -p "$copydir/repo" for pkgfile in "$copydir"/pkgdest/*.pkg.tar.?z; do - if $add_to_db; then - cp "$pkgfile" "$copydir/repo" - pushd "$copydir/repo" >/dev/null - repo-add repo.db.tar.gz "${pkgfile##*/}" - popd >/dev/null - fi - chown "$src_owner" "$pkgfile" mv "$pkgfile" "$PKGDEST" done |