Re: [PATCH] makeupdates: copy .ui into spokes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2012-06-12 at 15:08 -0700, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl@xxxxxxxxxx>

ACK

> 
> ---
>  scripts/makeupdates |   14 +++++++++++++-
>  1 files changed, 13 insertions(+), 1 deletions(-)
> 
> diff --git a/scripts/makeupdates b/scripts/makeupdates
> index e0aaa39..e709938 100755
> --- a/scripts/makeupdates
> +++ b/scripts/makeupdates
> @@ -101,6 +101,13 @@ def copyUpdatedFiles(tag, updates, cwd):
>  
>          return lst
>  
> +    def install_to_dir(fname, relpath):
> +        sys.stdout.write("Including %s\n" % fname)
> +        outdir = os.path.join(updates, relpath)
> +        if not os.path.isdir(outdir):
> +            os.makedirs(outdir)
> +        shutil.copy2(file, outdir)
> +
>      subdirs = []
>  
>      lines = doGitDiff(tag)
> @@ -121,7 +128,12 @@ def copyUpdatedFiles(tag, updates, cwd):
>             file.endswith('.sh') or file == 'configure.ac':
>              continue
>  
> -        if file.startswith('pyanaconda/'):
> +        if file.endswith('.ui'):
> +            # UI files should go under ui/<dir> where dir is the directory
> +            # above the file.ui
> +            uidir = os.path.dirname(file).split(os.path.sep)[-1]
> +            install_to_dir(file, os.path.join("ui",uidir))
> +        elif file.startswith('pyanaconda/'):
>              sys.stdout.write("Including %s\n" % (file,))
>              update_filename = os.path.realpath(os.path.join(updates, file))
>              update_dir = os.path.dirname(update_filename)


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux